[Insight-users] How to use Statistic Image Filter
Bradley Lowekamp
blowekamp at mail.nih.gov
Wed Feb 27 09:26:31 EST 2013
Hello,
You only stated that it "makes the program crash". That is really insufficient information for me to really know what is going on. Did your program seg-fault? Was an C++ exception thrown? Was it a divide by zero? What was the output?
I thought there may be some C++ exception thrown in the class by I don't see one:
https://github.com/Kitware/ITK/blob/master/Modules/Filtering/ImageStatistics/include/itkStatisticsImageFilter.hxx
I am going to guess there is an issue with you C++ code which tries to use the filter.... Also are you sure you are not using the LabelStatisticsImageFilter?
Brad
On Feb 27, 2013, at 8:45 AM, Pietro Nardelli <pie.nardelli at gmail.com> wrote:
> Hi guys,
>
> I need an information. I'm using the Statistic Image Filter to get the number of voxels of a segmentation result. However, I faced a problem: when the segmentation is empty, the filter doesn't work saying that the number of voxels is 0, but it make the program crash instead. How can I properly evaluate if there are no voxels segmented in order to avoid the crash of the system?
>
> Many many thanks,
>
> Pietro
> _____________________________________
> 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 Insight-users
mailing list