[ITK] [ITK-users] itk::StatisticsImageFilter

Bradley Lowekamp blowekamp at mail.nih.gov
Wed May 6 13:44:52 EDT 2015


Hello,

You should look into using the LabelStatisticsImageFilter[1]. You should be able to create a mask of the non-zero pixels and pass that to the filter.

HTH,
Brad

[1] http://www.itk.org/Doxygen/html/classitk_1_1LabelStatisticsImageFilter.html

On May 6, 2015, at 12:40 PM, JohannesWeber at gmx.at wrote:

> Hi!
>  
> The itk::StatisticsImageFilter does what I need except for the fact, that I want the statistic made only for voxels bigger than 0. Structure voxels (bigger than 0) should be taken into account but the background voxels (=0) should be ignored. Is this possible with this filter? If not I guess I could just adapt this filter and add at the right positions a if>0?
>  
> thank you!
>  
> best regards,
> Johannes
> _____________________________________
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20150506/7ce7c883/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