<div dir="ltr"><div><div><div>Hi Meikolin,<br></div>assuming you have an itk::Image, and that you correctly specify the pixel index whose value you are requiring, you can do:<br><pre>ImageType::PixelType value = image->GetPixel(index);</pre>You can have a look at section 4.1.3 of the ITK software guide [1] for further details.<br><br></div>HTH,<br></div>JON HAITZ<br><br><br>[1] <a href="http://www.itk.org/ItkSoftwareGuide.pdf">http://www.itk.org/ItkSoftwareGuide.pdf</a><br><div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><table style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium" align="center" border="0" cellpadding="0" cellspacing="0"><tbody></tbody></table><div><div dir="ltr"></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On 4 August 2015 at 08:29, meikolin saimara <span dir="ltr"><<a href="mailto:kolin9105@gmail.com" target="_blank">kolin9105@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>how to calculate pixel value black and white of image?<br></div><br></div>
<br>_______________________________________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org">Community@itk.org</a><br>
<a href="http://public.kitware.com/mailman/listinfo/community" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/community</a><br>
<br></blockquote></div><br></div></div>