[ITK Community] [Insight-users] mini-pipeline output region problem
Matt McCormick
matt.mccormick at kitware.com
Tue Feb 4 10:38:44 EST 2014
Hi Matthew,
GenerateOutputInformation() should only generate the information
(spacing, etc.) of the data outputs so when UpdateOutputInformation()
is called on the pipeline, all the outputs have the correct
information. GenerateData() should populate the output pixels.
This is covered in further detail in the ITK Software Guide [1] in
"How to Write a Filter".
Have a great day,
Matt
[1] http://itk.org/ItkSoftwareGuide.pdf
On Tue, Feb 4, 2014 at 5:35 AM, matthew <mrrm at web.de> wrote:
> Hi Matt,
>
> just had a look at your suggestion. It should work out for me. Realized that
> initially the parameters are copied from the input.
>
> Unfortunatly, GenerateOutputInformation gets called before the GenerateData,
> so I need to restructure things.
>
> But I am still a bit confused, because if I inspect the output of the filter
> at the end of the GenerateData everything is correct.
>
> So does the filter have an own spacing, lpr... variable, which is passed to
> the writer?
> Or does this happen before the GenerateData gets called?
>
> Thanks for helping.
> Have a nice day,
> Matthew
>
>
>
>
>
> --
> View this message in context: http://itk-users.7.n7.nabble.com/mini-pipeline-output-region-problem-tp33314p33319.html
> Sent from the ITK - Users mailing list archive at Nabble.com.
> _____________________________________
> 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 Community
mailing list