<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Sylvain,<br>
<br>
ImageConstIteratorWithIndex is just a base class and the doxygen
documentation says:<br>
<br>
"It does not provide mechanisms for moving the iterator. A subclass
of <a class="el"
href="http://www.itk.org/Doxygen/html/classitk_1_1ImageConstIteratorWithIndex.html"
title="A base class for multi-dimensional iterators templated over
image type that are designed to efficient...">ImageConstIteratorWithIndex</a>
must be used to move the iterator."<br>
<br>
I think<code></code> ImageRegionConstIteratorWithIndex is what you
are looking for.<br>
<br>
HTH<br>
Dominique<br>
<br>
On 24.02.2012 03:28, Sylvain Bernhardt wrote:
<blockquote cite="mid:4F46F5E9.5030008@ece.ubc.ca" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_____________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at
<a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Kitware offers ITK Training Courses, for more information visit:
<a class="moz-txt-link-freetext" href="http://www.kitware.com/products/protraining.html">http://www.kitware.com/products/protraining.html</a>
Please keep messages on-topic and check the ITK FAQ at:
<a class="moz-txt-link-freetext" href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Dominique Töpfer, Dipl.-Inform.
Institute of Medical Physics
University of Erlangen</pre>
</body>
</html>