<div>I think that can be done using a binary mask of all the nonzero pixels and this other filter:</div><div><a href="http://www.itk.org/Doxygen320/html/classitk_1_1BinaryImageToStatisticsLabelMapFilter.html#_details">http://www.itk.org/Doxygen320/html/classitk_1_1BinaryImageToStatisticsLabelMapFilter.html#_details</a> (Review section of ITK)</div>
<div><br></div><div>Regards<br><br><div class="gmail_quote">On Thu, Jun 9, 2011 at 5:58 PM, Cory Quammen <span dir="ltr">&lt;<a href="mailto:cquammen@cs.unc.edu">cquammen@cs.unc.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Luca,<br>
<br>
You could file this as a feature request in the ITK issue tracker:<br>
<a href="http://public.kitware.com/Bug/" target="_blank">http://public.kitware.com/Bug/</a><br>
<br>
It is similar to this issue: <a href="http://public.kitware.com/Bug/view.php?id=11149" target="_blank">http://public.kitware.com/Bug/view.php?id=11149</a><br>
<br>
Cory<br>
<div><div></div><div class="h5"><br>
On Thu, Jun 9, 2011 at 1:40 PM, Luca Penasa &lt;<a href="mailto:luca.penasa@gmail.com">luca.penasa@gmail.com</a>&gt; wrote:<br>
&gt; Is there any chance to compute mean value of an image excluding from<br>
&gt; calculation the pixels that assume a given value? (zero in my case).<br>
&gt;<br>
&gt;<br>
&gt; Thank you<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; ---------------------------<br>
&gt; Luca Penasa<br>
&gt; Student at Geosciences Dpt.<br>
&gt; University of Padua (IT)<br>
&gt; <a href="mailto:luca.penasa@email.it">luca.penasa@email.it</a><br>
&gt; ---------------------------<br>
&gt;<br>
&gt; _____________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Kitware offers ITK Training Courses, for more information visit:<br>
&gt; <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
&gt;<br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
Cory Quammen<br>
Computer Integrated Systems for Microscopy and Manipulation (CISMM)<br>
Department of Computer Science<br>
University of North Carolina at Chapel Hill<br>
<a href="http://www.cs.unc.edu/~cquammen" target="_blank">http://www.cs.unc.edu/~cquammen</a><br>
</font><div><div></div><div class="h5">_____________________________________<br>
Powered by <a href="http://www.kitware.com" 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" 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.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Sergio Vera<br><br> Alma IT Systems<br> C/ Vilana, 4B, 4º 1ª<br> 08022 Barcelona<br> T. (+34) 932 380 592<br> <a href="http://www.alma3d.com">www.alma3d.com</a><br>

</div>