[ITK-users] [ITK] Overload GenerateOutputInformation

Matt McCormick matt.mccormick at kitware.com
Mon Apr 28 09:30:56 EDT 2014


Hi Gianna,

Yes, if the Size of the Output Image is different than the Size of the
Input Image, GenerateOutputInformation must be overloaded and that
information imparted there. For more information, see the section of
the ITK Software Guide [1] on creating your own filters.

Please let us know if you have other questions.

Thanks,
Matt

[1] http://itk.org/ItkSoftwareGuide.pdf

On Tue, Apr 22, 2014 at 6:13 PM, Gianna Nigro <gianna.nigro at gmail.com> wrote:
> Hi,
> I'm writing a filter and I'm having some problems with the allocation of the
> output image.
> My filter should take in input a 4D image and should give as output a 4D
> image, with different number of elements in the fourth dimension (so if I'm
> not wrong, size of output image is different from size of input image).
> So I have to overload GenerateOutputInformation, is it correct?
> If it is so, I need some help to do it.
> The filter should analyse elements in the fourth dimension of Input Image
> (for example 17 elements), throuth some mathematical models, and fill the
> fourth dimension of the output image with parameters extracted with these
> models (for example 4 parametres).
> Could someone explain me, step by step, how can I overload
> GenerateOutputInformation?
>
>
> Thanks
>
> _____________________________________
> 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
>


More information about the Insight-users mailing list