<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello,<div><br></div><div>You could create an image of just the region you are interested with ExtractImageFilter, RegionOfInterestImageFilter, or CropImageFilter. Then use StatisticsImageFilter on that sub image.</div><div><br></div><div>Brad</div><div><br><div><div>On Jun 24, 2011, at 3:34 PM, Gaëtan Lehmann wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>Le 24 juin 11 à 21:26, David Doria a écrit :<br><br><blockquote type="cite">2011/6/24 Neil Panjwani &lt;<a href="mailto:paniwani@gmail.com">paniwani@gmail.com</a>&gt;:<br></blockquote><blockquote type="cite"><blockquote type="cite">Or you could use a neighborhood iterator, which by default creates<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">rectangular regions, and collect the values the values that way.<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I imagine he's looking for a functions like:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">PixelType GetMedian(ImageRegion)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Does anyone know if something like this exists? It seems like a<br></blockquote><blockquote type="cite">reasonable request to me.<br></blockquote><blockquote type="cite"><br></blockquote><br>LabelMap/LabelObject can do that.<br>It may not be easy enough to create the LabelObject corresponding to &nbsp;<br>the desired region though.<br><br>Gaëtan<br><br><br>-- <br>Gaëtan Lehmann<br>Biologie du Développement et de la Reproduction<br>INRA de Jouy-en-Josas (France)<br>tel: +33 1 34 65 29 66 &nbsp;&nbsp;&nbsp;fax: 01 34 65 29 09<br><a href="http://mima2.jouy.inra.fr">http://mima2.jouy.inra.fr</a> &nbsp;<a href="http://www.itk.org">http://www.itk.org</a><br><a href="http://www.bepo.fr">http://www.bepo.fr</a><br><br><span>&lt;PGP.sig&gt;</span>_____________________________________<br>Powered by www.kitware.com<br><br>Visit other Kitware open-source projects at<br>http://www.kitware.com/opensource/opensource.html<br><br>Kitware offers ITK Training Courses, for more information visit:<br>http://www.kitware.com/products/protraining.html<br><br>Please keep messages on-topic and check the ITK FAQ at:<br>http://www.itk.org/Wiki/ITK_FAQ<br><br>Follow this link to subscribe/unsubscribe:<br>http://www.itk.org/mailman/listinfo/insight-users<br></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">========================================================</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Bradley Lowekamp<span class="Apple-converted-space">&nbsp;</span><span class="Apple-converted-space">&nbsp;</span></font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font class="Apple-style-span" face="Arial"><span class="Apple-style-span" style="font-family: Arial; "><span class="Apple-style-span" style="font-family: Arial; ">Lockheed Martin&nbsp;</span></span></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Contractor for</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Office of High Performance Computing and Communications</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">National Library of Medicine<span class="Apple-converted-space">&nbsp;</span></font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica"><a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a></font></p><br class="Apple-interchange-newline"></span></span>
</div>
<br></div></body></html>