[ITK] [ITK-users] Problem with SliceBySliceImageFilter, only applied on the first slice

Lowekamp, Bradley (NIH/NLM/LHC) [C] blowekamp at mail.nih.gov
Wed Aug 2 13:38:06 EDT 2017


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 <jonasteuwen at gmail.com>
Date: Wednesday, August 2, 2017 at 12:51 PM
To: "insight-users at itk.org" <insight-users at itk.org>
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20170802/8fa6e100/attachment.html>
-------------- next part --------------
_____________________________________
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


More information about the Community mailing list