[Insight-users] (no subject)

David Doria daviddoria at gmail.com
Tue Mar 1 06:57:11 EST 2011


On Tue, Mar 1, 2011 at 6:46 AM, john smith <mkitkinsightuser at gmail.com>wrote:

> Hello to everyone,
> 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't
> recognise the ' < ' operator.  Can somebody help me? (I use visualstudoi
> 2010 and Cmake)
>
> thnaks in advance
>
>
You are trying to compare two Index objects, for which the < operator is not
implemented. I think you want to change GetIndex to GetPixel in both cases:

ImageType::IndexType max = inputIterator.GetIndex(0);
...
ImageType::IndexType index = inputIterator.GetIndex(i);

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110301/5ca17330/attachment.htm>


More information about the Insight-users mailing list