[Insight-users] Volume Calculation for Binary Images
Xiaopeng Yang
yxp233 at postech.ac.kr
Fri Dec 17 02:36:09 EST 2010
Hi Liang,
Thanks for your help. Your idea works I think. As far as I know, for counting the number of pixels the GetSum() of itkStatisticsImageFilter can be used.
Do you have any idea how to use it in programming? Here is my code, which I think is not correct:
typedef itk::StatisticsImageFilter<OutputImageType> StatisticsImageFilterType;
StatisticsImageFilterType::Pointer nrOfVoxelsInMask = StatisticsImageFilterType::New();
nrOfVoxelsInMask = reader ->GetOutput()->GetSum();
-----邮件原件-----
发件人: insight-users-bounces at itk.org [mailto:insight-users-bounces at itk.org] 代表 Xi Liang
发送时间: 2010년 12월 17일 금요일 오후 3:16
收件人: insight-users at itk.org
主题: Re: [Insight-users] Volume Calculation for Binary Images
Volume = numberOfPositivePixels * spacing
Xiaopeng Yang wrote:
>
> Dear Users,
>
>
>
> After segmenting some organ from CT images, I get a volume binary image
> for
> that organ. Could you please tell me how to calculate the volume of that
> organ?
>
>
>
> Thanks,
>
> Xiaopeng
>
>
> _____________________________________
> 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.html
>
> 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
>
>
--
View this message in context: http://old.nabble.com/Volume-Calculation-for-Binary-Images-tp30478628p30478642.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.html
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