[ITK] (no subject)

Jon Haitz Legarreta jhlegarreta at vicomtech.org
Tue Aug 4 03:02:48 EDT 2015


Hi Meikolin,
assuming you have an itk::Image, and that you correctly specify the pixel
index whose value you are requiring, you can do:

ImageType::PixelType value = image->GetPixel(index);

You can have a look at section 4.1.3 of the ITK software guide [1] for
further details.

HTH,
JON HAITZ


[1] http://www.itk.org/ItkSoftwareGuide.pdf



On 4 August 2015 at 08:29, meikolin saimara <kolin9105 at gmail.com> wrote:

> how to calculate pixel value black and white of image?
>
>
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/mailman/listinfo/community
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20150804/90333191/attachment.html>


More information about the Community mailing list