<div dir="ltr">I apologize, I meant GetVoxelCount(). In order to get a count of pixels inside an ROI, initialize it as a stencil and use SetStencil() of vtkImageAccumulate<div><br></div><div><br></div><div>Prathamesh<br><br>
<div class="gmail_quote">On Thu, Jul 22, 2010 at 9:03 PM, myaqua1982 <span dir="ltr"><<a href="mailto:myaqua1982@163.com">myaqua1982@163.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="font-family:verdana;font-size:10pt" bgcolor="#ffffff">
<div><font color="#000080" size="2" face="Verdana">Hello Prathamesh:</font></div>
<div style="text-indent:2em"><font color="#000080">Thanks for your writing! I
have checked the vtkImageAccumulate vtkImageStencil ,but I did not find the
function that called</font><font color="#000000"> </font><font color="#000080">GetNumberOfVoxels(). And I want compute the voxels on an arbitrary
portion of the imput data. The result of GetVoxelCount() is the total number of
the pixels of the whole pic. Could you please give me some specific advice?
Thank you very much!</font></div>
<div style="text-indent:22em"><font color="#000080" size="2" face="Verdana"></font> </div>
<div><font color="#000080" size="2" face="Verdana">JHT</font></div>
<div><font color="#c0c0c0" size="2" face="Verdana">2010-07-23 </font></div><font color="#000080" size="2" face="Verdana">
<hr style="width:122px;min-height:2px" align="left" size="2">
</font>
<div><font color="#c0c0c0" size="2" face="Verdana"><span>myaqua1982</span>
</font></div><font color="#000080" size="2" face="Verdana">
<hr>
</font>
<div><font size="2" face="Verdana"><strong>发件人:</strong> Prathamesh Kulkarni
</font></div>
<div><font size="2" face="Verdana"><strong>发送时间:</strong> 2010-07-22 22:43:38
</font></div>
<div><font size="2" face="Verdana"><strong>收件人:</strong> myaqua1982 </font></div>
<div><font size="2" face="Verdana"><strong>抄送:</strong> VTK Mailing List
</font></div>
<div><font size="2" face="Verdana"><strong>主题:</strong> Re: [vtkusers] about
vtkImageAccumulate </font></div><div><div></div><div class="h5">
<div><font size="2" face="Verdana"></font></div>
<div><font size="2" face="Verdana">
<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" target="_blank">myaqua1982@163.com</a>><br>Subject:
[vtkusers] about vtkImageAccumulate<br>To: "vtkusers" <<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>><br>Message-ID: <<a href="mailto:201007221142511561726@163.com" target="_blank">201007221142511561726@163.com</a>
<div>><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></font></div></div></div></div>
</blockquote></div><br></div></div>