[Insight-users] generating a whole displacement field by combining two halves, generated separately

Seth Gilchrist seth at mech.ubc.ca
Fri Apr 26 21:13:00 EDT 2013


Hi Tim,
You could try to create two deformation fields in the regions each
transform defines, then use the bool output of
TransformPhysicalPointToIndex with your two input deformation fields to
construct your output deformation field.

Iterate through the deformation field and try this psudo code:

for all index in finalDeformField
  location = finalDeformField::TransformIndexToPhysicalPoint(index)
  if defField1::TransformPhysicalPointToIndex(location)
    Use the data from field one
  elseif defField2::TransformPhysicalPointToIndex(location)
    Use the data from field two
  else
    Nothing
  end
end

Cheers,
Seth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130426/d0c4c75e/attachment.htm>


More information about the Insight-users mailing list