Discussion:
[ITK-users] function to find if image has foreground pixels in binaryvolume
Swetha Sharma
2017-04-30 02:40:58 UTC
Permalink
Hi All,

I am looking for a function which checks existence of foreground pixel in
binary volume.
-swetha
Dženan Zukić
2017-04-30 14:36:29 UTC
Permalink
Hi Swetha,

combine image->TransformPhysicalPointToIndex()
<https://itk.org/Doxygen/html/classitk_1_1ImageBase.html#af4a7c9c3787e9fdafbaaade2e02efa25>
to
see if the point is in the image and image->GetPixel()
<https://itk.org/Doxygen/html/classitk_1_1Image.html#ad424c945604f339130b4ffe81b99738e>
to
check whether the value is greater than zero.

Regards,
DÅŸenan Zukić, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)
Post by Swetha Sharma
Hi All,
I am looking for a function which checks existence of foreground pixel in
binary volume.
-swetha
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://www.kitware.com/products/protraining.php
http://www.itk.org/Wiki/ITK_FAQ
http://public.kitware.com/mailman/listinfo/insight-users
Loading...