<html><body bgcolor="#FFFFFF"><div>Hi David,</div><div><br></div><div>have a look at the ImageRegion(WithIndex)(Const)Iterator classes. These are designed for iterating just over a certain ImageRegion of an Image.</div><div><br></div><div>But if you want to calculate the minimum or maximum value within a certain region, you should also be able to use either the MinimumMaxiumImageCalculator resp. MinimumMaximumImageFilter with the requested region set to the your specific "sub"-image region.</div><div><br></div><div>--</div><div>regards</div><div>Andreas<br><br>On May 20, 2009, at 1:12 PM, "David Pastor" <<a href="mailto:david.pastor@die.upm.es">david.pastor@die.upm.es</a>> wrote:<br><br></div><div><span></span></div><blockquote type="cite"><div>
<div><font face="Arial" size="2">Hello,</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">I need to do the following</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Having two images which are same dimension, size,
spacing, pixel type and both very similar to each other, I need to compare a
common region (like a local geodesic comparison) without iterating over the
whole image.</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Is there any filter to do this quickly? otherwise,
how can i set the iteratos to cover only my target region instead of the whole
image region?</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Thanks</font></div>
<div><font face="Arial" size="2">David</font></div>
</div><div><span>_____________________________________</span><br><span>Powered by <a href="http://www.kitware.com"><a href="http://www.kitware.com">www.kitware.com</a></a></span><br><span></span><br><span>Visit other Kitware open-source projects at</span><br><span><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></span><br><span></span><br><span>Please keep messages on-topic and check the ITK FAQ at: <a href="http://www.itk.org/Wiki/ITK_FAQ"><a href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a></a></span><br><span></span><br><span>Follow this link to subscribe/unsubscribe:</span><br><span><a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a></span><br></div></blockquote></body></html>