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

Tim Bhatnagar tim.bhatnagar at gmail.com
Mon Apr 29 12:34:32 EDT 2013


Thanks Seth, I like the idea... but with the def fields having pretty much
all of the exact attributes, I was hoping to append the files on a more
macro-scale... however, I think it may require a process like you outlined.

Thanks for the help!

Tim


On Fri, Apr 26, 2013 at 6:13 PM, Seth Gilchrist <seth at mech.ubc.ca> wrote:

> 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
>
>


-- 
Tim Bhatnagar
PhD Candidate
Orthopaedic Injury Biomechanics Group
Department of Mechanical Engineering
University of British Columbia

Rm 5000 - 818 West 10th Ave.
Vancouver, BC
Canada
V5Z 1M9

Ph: (604) 675-8845
Fax: (604) 675-8820
Web: oibg.mech.ubc.ca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130429/8e72c105/attachment.htm>


More information about the Insight-users mailing list