<div dir="ltr"><br>Hello,<br><br>You can use vtkImageAccumulate with vtkImageStencil for achieving this. For counting the number of pixels, there is image_accumulate-&gt;GetNumberOfVoxels().<br><br>Prathamesh<br><br><br>
Message: 24<br>
Date: Thu, 22 Jul 2010 11:42:52 +0800<br>
From: &quot;myaqua1982&quot; &lt;<a href="mailto:myaqua1982@163.com">myaqua1982@163.com</a>&gt;<br>
Subject: [vtkusers] about vtkImageAccumulate<br>
To: &quot;vtkusers&quot; &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
Message-ID: &lt;<a href="mailto:201007221142511561726@163.com">201007221142511561726@163.com</a><div id=":1n4" class="ii gt">&gt;<br>
Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
<br>
Hi all:<br>
I want to count the number of pixels of a BMP pic. Is vtkImageAccumulate
 will do? And how can I use this function. And the pic has been 
segmented already, I want to count the pixels of ROI .Please give me 
some advice. Thank you very much!!!<br>
<br>
2010-07-22<br>
<br>
<br>
<br>
myaqua1982<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20100722/a8aa5c68/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20100722/a8aa5c68/attachment-0001.htm</a>&gt;</div>
</div>