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 SharmaHi 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