[ITK] [ITK-users] function to find if image has foreground pixels in binaryvolume
Dženan Zukić
dzenanz at gmail.com
Sun Apr 30 10:36:29 EDT 2017
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.)
On Sat, Apr 29, 2017 at 10:40 PM, Swetha Sharma <swetha.bsharma at gmail.com>
wrote:
> 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
>
> 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/20170430/ba5af234/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