Re: [ITK-users] Problem with SliceBySliceImageFilter, only applied on the first slice
Jonas Teuwen <[email protected]>
| Newsgroups | gmane.comp.lib.itk.user |
|---|---|
| Message-ID | <CACsn5GxkJee5mLA86RwF9pQ5HTOG5i3TFb3ySZ3i+puWwWsQqQ@mail.gmail.com> |
Thank Brad, Following your suggestion to move the creation of the invidual filters to the GenerateData method, it works. I assume I will understand why once, I get more experience with ITK. Best, Jonas On Wed, Aug 2, 2017 at 7:38 PM, Lowekamp, Bradley (NIH/NLM/LHC) [C] < blowekamp-2loH/[email protected]> wrote: > Hello, > > > > Does using the that example filter cause the problem? > > > > There are many subtle problems that a composite filter implementation can > have. These include not properly grafting the input or output in the > GenerateData method. Also issues with the incorrect modified times not > being modified or being modified too often are common. The example > illustrates having the mini-pipeline filter of the composite filter as > member variables. This can make things more problematic when executing a > filter multiple times. I prefer to create the individual filters in the > GenerateData method, as it generally has been more reliable, and may side > step some issues related to the modified times. > > > > The ways to debug a complex pipeline include: interactively using a debug > to set up break points, add a number of Event call backs to monitor the > execution of different filters and using the PipelineMonitorImageFilter to > record the steps in a pipeline execution. > > > > Your first steps may be to determine if the composite filter is being > executed for each slice, and if it is being executed then is the internal > mini-pipeline being executed or do the modified time indicate it is up to > date?. > > > > HTH, > > Brad > > > > > > *From: *Jonas Teuwen <[email protected]> > *Date: *Wednesday, August 2, 2017 at 12:51 PM > *To: *"[email protected]" <[email protected]> > *Subject: *[ITK-users] Problem with SliceBySliceImageFilter, only applied > on the first slice > > > > Hi all, > > > > Using the SliceBySliceImageFilter as in the Insight Journal > http://www.insight-journal.org/browse/publication/133 works. > > > > However, when I build a pipeline such as https://itk.org/Doxygen46/ > html/Filtering_2CompositeFilterExample_8cxx-example.html and plug that in > the above example, the output has the right size, but the output is the > filter applied to the first slice and copied to all the others. > > > > What would be the appropriate way to debug this? > > > > Best, > > Jonas > _____________________________________ 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