[prev in list] [next in list] [prev in thread] [next in thread] 

List:       insight-users
Subject:    Re: [Insight-users] generating a whole displacement field by combining two halves, generated separat
From:       Tim Bhatnagar <tim.bhatnagar () gmail ! com>
Date:       2013-04-29 16:34:32
Message-ID: CALbgTzbQoaEViR15eUmcZKpCdWrgnquAOe-qn_-x3QrJTBfncw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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

[Attachment #5 (text/html)]

<div dir="ltr">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.<br> \
<br>Thanks for the help!<br><br>Tim<br></div><div class="gmail_extra"><br><br><div \
class="gmail_quote">On Fri, Apr 26, 2013 at 6:13 PM, Seth Gilchrist <span \
dir="ltr">&lt;<a href="mailto:seth@mech.ubc.ca" \
target="_blank">seth@mech.ubc.ca</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Hi Tim,<div>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.</div>


<div><br></div><div>Iterate through the deformation field and try this psudo \
code:</div><div><br></div><div>for all index in finalDeformField</div><div>  location \
= finalDeformField::TransformIndexToPhysicalPoint(index)<br>


</div><div>  if defField1::TransformPhysicalPointToIndex(location)<br></div><div>    \
Use the data from field one</div><div>  elseif \
defField2::TransformPhysicalPointToIndex(location)</div><div>    Use the data from \
field two</div>


<div>  else</div><div>    Nothing</div><div>  \
end</div><div>end</div><div><br></div><div>Cheers,</div><div>Seth</div><div><br></div></div>
 </blockquote></div><br><br clear="all"><br>-- <br>Tim Bhatnagar<br>PhD \
Candidate<br>Orthopaedic Injury Biomechanics Group<br>Department of Mechanical \
Engineering<br>University of British Columbia<br><br>Rm 5000 - 818 West 10th Ave.<br> \
Vancouver, BC<br>Canada<br>V5Z 1M9<br><br>Ph: (604) 675-8845<br>Fax: (604) \
675-8820<br>Web: <a href="http://oibg.mech.ubc.ca" \
target="_blank">oibg.mech.ubc.ca</a><br> </div>



_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic