<div dir="ltr">Hi,<div><br></div><div>Take a look at using a histogram  [1] or simply iterate throughout the image using fx. a const iterator [2] and aggregate whenever you find the desired pixel value. </div><div><br></div><div>[1] <a href="http://itk.org/Wiki/ITK/Examples/Statistics/HistogramToImageFilterGrayscale">http://itk.org/Wiki/ITK/Examples/Statistics/HistogramToImageFilterGrayscale</a><br></div><div>[2] <a href="http://www.itk.org/Doxygen/html/classitk_1_1ImageConstIterator.html">http://www.itk.org/Doxygen/html/classitk_1_1ImageConstIterator.html</a><br></div><div><br></div><div>Best,</div><div>Jose</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 17, 2016 at 4:46 PM, 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>hello guys, anyone can help me??<br>I need a program in itk how to apply a number of black pixel value on image  in cmd. when we input this image in cmd(command promt) and then the output is a number of black pixel value.<br></div>pleas help me.<br></div>
<br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>