<br><div class="gmail_quote">On Mon, Feb 14, 2011 at 6:11 PM, Dawood Masslawi <span dir="ltr">&lt;<a href="mailto:davoud_zzz@yahoo.com">davoud_zzz@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit">Hi Roberto,<div><br></div><div>Try using the image iterators, there are code samples included in the examples directory</div>
<div><br></div><div>of the ITK. Also, make sure your PixelType is compatible with your
 images.</div><div><br></div><div>Regards,</div><div><br></div><font color="#888888"><div>Dawood</div></font></td></tr></tbody></table></blockquote><div><br></div><div>Roberto,</div><div><br>Can you show us an example of the wrong value vs the right value? Also, are you sure you don&#39;t have the j and i backwards? That is, check the value of pixel[i,j] and pixel[j,i] and see if either is the correct value you are looking for.</div>
<div><br></div><div>David </div></div>