<div>On Tue, Mar 1, 2011 at 6:46 AM, john smith <span dir="ltr">&lt;<a href="mailto:mkitkinsightuser@gmail.com">mkitkinsightuser@gmail.com</a>&gt;</span> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello to everyone,<br>I am trying to read an input image, using a reader object. Then devide the image, using neighborhood iterator and finally, find the max value of every neighborhood iterator and get it on my command prompt window. I think that this can be done wtith the following code, but when I build it, it doesn&#39;t recognise the &#39; &lt; &#39; operator.  Can somebody help me? (I use visualstudoi 2010 and Cmake)<br>

<br>thnaks in advance<br><br></blockquote><div><br></div><div>You are trying to compare two Index objects, for which the &lt; operator is not implemented. I think you want to change GetIndex to GetPixel in both cases:</div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br></div><div>ImageType::IndexType max = inputIterator.GetIndex(0);</div><div>...</div><div>ImageType::IndexType index = inputIterator.GetIndex(i);</div>
<div><br></div><div>David </div></div><br>