<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->GetNumberOfVoxels().<br><br>Prathamesh<br><br><br>
Message: 24<br>
Date: Thu, 22 Jul 2010 11:42:52 +0800<br>
From: "myaqua1982" <<a href="mailto:myaqua1982@163.com">myaqua1982@163.com</a>><br>
Subject: [vtkusers] about vtkImageAccumulate<br>
To: "vtkusers" <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
Message-ID: <<a href="mailto:201007221142511561726@163.com">201007221142511561726@163.com</a><div id=":1n4" class="ii gt">><br>
Content-Type: text/plain; charset="us-ascii"<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: <<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>></div>
</div>