[ITK] [ITK-users] WarpImageFilter wrong output

haratron haratron at gmail.com
Wed Jan 7 15:10:30 EST 2015


Hi Matt,

thanks for the response.
What about
http://www.itk.org/Wiki/ITK/Examples/Registration/LandmarkBasedTransformInitializer
?
I missed a space in the previous email and it didn't parse the URL
correctly.

On Wed, Jan 7, 2015 at 9:58 PM, Matt McCormick <matt.mccormick at kitware.com>
wrote:

> Hi John,
>
> The DisplacementFieldTransform can be used with the
> ResampleImageFilter like any other Transform. There was a time when
> the DisplacementFieldTransform was not available -- the special
> WarpImageFilter class was used in this case.
>
> HTH,
> Matt
>
> On Fri, Jan 2, 2015 at 10:57 PM, haratron <haratron at gmail.com> wrote:
> > Thanks!
> >
> > What is the difference between:
> > 1. http://www.itk.org/Wiki/ITK/Examples/Registration/WarpImageFilter
> > 2.
> >
> http://www.itk.org/Wiki/ITK/Examples/Registration/LandmarkBasedTransformInitializer3
> .
> >
> http://www.itk.org/Wiki/ITK/Examples/Registration/DeformationFieldTransform
> >
> > On Fri, Jan 2, 2015 at 8:28 PM, Bradley Lowekamp <blowekamp at mail.nih.gov
> >
> > wrote:
> >>
> >> Hello,
> >>
> >> In your CreateMovingImage2 method how is the "image" argument connected
> to
> >> the pipeline?
> >>
> >> Brad
> >>
> >> On Jan 2, 2015, at 12:59 PM, haratron <haratron at gmail.com> wrote:
> >>
> >> Hello and happy new year,
> >>
> >> I'm using the WarpImageFilter from here:
> >> http://www.itk.org/Wiki/ITK/Examples/Registration/WarpImageFilter
> >>
> >> I have original.png that I'm using as the movingImage and I'm creating
> >> another one ("empty" image filled with white color, size 1800x1800)
> that is
> >> the fixedImage.
> >>
> >> The problem is that a blank image filled with black is created instead
> of
> >> the warped image that is expected.
> >>
> >> original.png : http://i.imgur.com/QQyXgzg.png
> >> output.png: http://i.imgur.com/LkYnZ6n.png
> >>
> >> My full WarpImageFilter.cxx file (includes changes from the original
> >> example code):
> >> http://pastebin.com/WNDb2TgM
> >>
> >> What am I doing wrong?
> >>
> >> John
> >> _____________________________________
> >> 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://public.kitware.com/mailman/listinfo/insight-users
> >>
> >>
> >
> >
> > _____________________________________
> > 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://public.kitware.com/mailman/listinfo/insight-users
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20150107/461781df/attachment.html>
-------------- next part --------------
_____________________________________
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://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list