[Insight-users] [ITK Community] PadImageFilter and image origin?

Bradley Lowekamp blowekamp at mail.nih.gov
Mon Mar 3 08:54:08 EST 2014


Arnaud,

The filters are correct. The figures on the Doxygen page should be updated though:

http://www.itk.org/Doxygen/html/classitk_1_1PadImageFilter.html

These filters are similar to the ExtractImageFilter, in that the Origin stays the same but the starting index changes. Looking back at the figure in Doxygen the origin should be placed at the corner of the red box in both images.

Speaking of images to illustrate algorithms, I prefer the image grid illustrating many of these geometry concepts over the block done for the PadFilter like I did here:

http://www.itk.org/Doxygen/html/classitk_1_1BinShrinkImageFilter.html

Let me know what you think will be the most informative way to illustrate.

Brad


On Mar 3, 2014, at 6:03 AM, Cory Quammen <cory.quammen at kitware.com> wrote:

> Arnaud,
> 
> That sounds like a bug. I would think the padding should affect the
> origin so as to keep the original image content in the padded image to
> be at the same physical location as the input.
> 
> Cory
> 
> On Mon, Mar 3, 2014 at 5:22 AM, Arnaud Gelas <arnaudgelas at gmail.com> wrote:
>> Hi all,
>> 
>> Is it normal that the output image of a PadImageFilter (and derivatives) has the same origin as the input?
>> 
>> I just wonder if it is a bug, or not...
>> 
>> Thanks,
>> Arnaud
>> _____________________________________
>> 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
>> _______________________________________________
>> Community mailing list
>> Community at itk.org
>> http://public.kitware.com/cgi-bin/mailman/listinfo/community
> _____________________________________
> 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



More information about the Insight-users mailing list