[Insight-users] Proper Filter

Luis Ibanez luis.ibanez at kitware.com
Thu Jan 28 16:24:53 EST 2010


Hi Badry,

You may want to follow the model of

A) The Minimum Maximum image calculator:
http://www.itk.org/Doxygen/html/classitk_1_1MinimumMaximumImageCalculator.html

or

B) The StatisticsImageFilter
http://www.itk.org/Doxygen/html/classitk_1_1StatisticsImageFilter.html


    Regards,


           Luis



----------------------------------------
On Wed, Jan 27, 2010 at 4:29 PM, Brady McCary
<brady.mccary+ITK at gmail.com> wrote:
> insight-users,
>
> What is the proper filter type to subclass for an operation like this:
>
> sum = 0
>
> for each pixel p in an image
>     sum = sum + f(p)
>
> return sum
>
> The result of this operation is the sum, not another image, so making it a
> subclass of itk::ImageSource or itk::ImageToImageFilter or
> itk::InPlaceImageFilter doesn't seem right. The class
> itk::ProjectionImageFilter is closer, but it is still a subclass of
> itk::ImageSource, and I am interested in projecting all the way to a scalar
> not another image.
>
> Currently I am using itk::InPlaceImageFilter, telling the filter to operate
> in-place because I wanted to use itk::ImageSource::ThreadedGenerateData and
> friends.
>
> Such a class is probably there and I'm just not seeing it.
>
> Brady
>
> _____________________________________
> 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.html
>
> 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