<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi all,<br>
I encountered a little problem with my iterator in ITK4:<br>
<br>
<font face="Consolas">typedef unsigned short PixelType;<br>
const unsigned int Dimension = 2;<br>
typedef itk::Image<PixelType, Dimension> ImageType;<br>
typedef itk::ImageConstIteratorWithIndex<ImageType>
IteratorType;<br>
<br>
ImageType::Pointer imgL = ImageType::New();<br>
imgL = somereader->GetOutput();<br>
<br>
IteratorType it(imgL, imgL->GetLargestPossibleRegion());<br>
<br>
for(it = it.Begin(); !it.IsAtEnd(); ++it)<br>
{<br>
...<br>
}</font><br>
<br>
The compilation in VisualStudio 2008 gives me this error:<br>
<br>
<small><font face="Consolas">error C2675: unary '++' :
'IteratorType' does not define this operator or a conversion to
a type acceptable to the predefined operator</font></small><br>
<br>
Any thoughts ?<br>
<br>
Regards,<br>
Sylvain<br>
</body>
</html>