<div dir="ltr">Hi Matt, <div><br><div>thanks for the response.</div></div><div>What about <a href="http://www.itk.org/Wiki/ITK/Examples/Registration/LandmarkBasedTransformInitializer">http://www.itk.org/Wiki/ITK/Examples/Registration/LandmarkBasedTransformInitializer</a> ?</div><div>I missed a space in the previous email and it didn't parse the URL correctly.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 7, 2015 at 9:58 PM, Matt McCormick <span dir="ltr"><<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi John,<br>
<br>
The DisplacementFieldTransform can be used with the<br>
ResampleImageFilter like any other Transform. There was a time when<br>
the DisplacementFieldTransform was not available -- the special<br>
WarpImageFilter class was used in this case.<br>
<br>
HTH,<br>
Matt<br>
<div class="HOEnZb"><div class="h5"><br>
On Fri, Jan 2, 2015 at 10:57 PM, haratron <<a href="mailto:haratron@gmail.com">haratron@gmail.com</a>> wrote:<br>
> Thanks!<br>
><br>
> What is the difference between:<br>
> 1. <a href="http://www.itk.org/Wiki/ITK/Examples/Registration/WarpImageFilter" target="_blank">http://www.itk.org/Wiki/ITK/Examples/Registration/WarpImageFilter</a><br>
> 2.<br>
> <a href="http://www.itk.org/Wiki/ITK/Examples/Registration/LandmarkBasedTransformInitializer3" target="_blank">http://www.itk.org/Wiki/ITK/Examples/Registration/LandmarkBasedTransformInitializer3</a>.<br>
> <a href="http://www.itk.org/Wiki/ITK/Examples/Registration/DeformationFieldTransform" target="_blank">http://www.itk.org/Wiki/ITK/Examples/Registration/DeformationFieldTransform</a><br>
><br>
> On Fri, Jan 2, 2015 at 8:28 PM, Bradley Lowekamp <<a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a>><br>
> wrote:<br>
>><br>
>> Hello,<br>
>><br>
>> In your CreateMovingImage2 method how is the "image" argument connected to<br>
>> the pipeline?<br>
>><br>
>> Brad<br>
>><br>
>> On Jan 2, 2015, at 12:59 PM, haratron <<a href="mailto:haratron@gmail.com">haratron@gmail.com</a>> wrote:<br>
>><br>
>> Hello and happy new year,<br>
>><br>
>> I'm using the WarpImageFilter from here:<br>
>> <a href="http://www.itk.org/Wiki/ITK/Examples/Registration/WarpImageFilter" target="_blank">http://www.itk.org/Wiki/ITK/Examples/Registration/WarpImageFilter</a><br>
>><br>
>> I have original.png that I'm using as the movingImage and I'm creating<br>
>> another one ("empty" image filled with white color, size 1800x1800) that is<br>
>> the fixedImage.<br>
>><br>
>> The problem is that a blank image filled with black is created instead of<br>
>> the warped image that is expected.<br>
>><br>
>> original.png : <a href="http://i.imgur.com/QQyXgzg.png" target="_blank">http://i.imgur.com/QQyXgzg.png</a><br>
>> output.png: <a href="http://i.imgur.com/LkYnZ6n.png" target="_blank">http://i.imgur.com/LkYnZ6n.png</a><br>
>><br>
>> My full WarpImageFilter.cxx file (includes changes from the original<br>
>> example code):<br>
>> <a href="http://pastebin.com/WNDb2TgM" target="_blank">http://pastebin.com/WNDb2TgM</a><br>
>><br>
>> What am I doing wrong?<br>
>><br>
>> John<br>
>> _____________________________________<br>
>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at<br>
>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Kitware offers ITK Training Courses, for more information visit:<br>
>> <a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
>><br>
>> Please keep messages on-topic and check the ITK FAQ at:<br>
>> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://public.kitware.com/mailman/listinfo/insight-users" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
>><br>
>><br>
><br>
><br>
> _____________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Kitware offers ITK Training Courses, for more information visit:<br>
> <a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
><br>
> Please keep messages on-topic and check the ITK FAQ at:<br>
> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/insight-users" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
><br>
</div></div></blockquote></div><br></div>