<div class="gmail_quote">2011/4/21 LaMoOsH .. <span dir="ltr"><<a href="mailto:xlolla28x@hotmail.com">xlolla28x@hotmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>
Hello, <br>
<br>
yes I did. <br>
But got confused because I already found a region in my image previously using labels, so i dont need to create a new image and find a region, so i thought that I only need LineConstIterator ?right ? or this works differently?<br>
also, <br>
is it right to write my point this way? (..,..)?<br>
<br>
Thansk for you reply. <br>
<br>
Lamya <br><div class="hm"> <br></div></div></blockquote><div><br>Please keep the discussion on the list. It looks like you're missing the part about making the points into an ImageType::IndexType -<br><br></div><div>
<pre class="de1"> ImageType<span class="sy4">::</span><span class="me2">IndexType</span> corner1 <span class="sy1">=</span> region.<span class="me1">GetIndex</span><span class="br0">(</span><span class="br0">)</span><span class="sy4">;</span>
ImageType<span class="sy4">::</span><span class="me2">IndexType</span> corner2<span class="sy4">;</span>
corner2<span class="br0">[</span><span class="nu0">0</span><span class="br0">]</span> <span class="sy1">=</span> corner1<span class="br0">[</span><span class="nu0">0</span><span class="br0">]</span> <span class="sy2">+</span> region.<span class="me1">GetSize</span><span class="br0">(</span><span class="br0">)</span><span class="br0">[</span><span class="nu0">0</span><span class="br0">]</span> <span class="sy2">-</span> <span class="nu0">1</span><span class="sy4">;</span>
corner2<span class="br0">[</span><span class="nu0">1</span><span class="br0">]</span> <span class="sy1">=</span> corner1<span class="br0">[</span><span class="nu0">1</span><span class="br0">]</span> <span class="sy2">+</span> region.<span class="me1">GetSize</span><span class="br0">(</span><span class="br0">)</span><span class="br0">[</span><span class="nu0">1</span><span class="br0">]</span> <span class="sy2">-</span> <span class="nu0">1</span><span class="sy4">;</span>
itk<span class="sy4">::</span><span class="me2">LineIterator</span><span class="sy1"><</span>ImageType<span class="sy1">></span> it<span class="br0">(</span>image, corner1, corner2<span class="br0">)</span><span class="sy4">;<br>
<br></span></pre>
<br clear="all">David <br></div></div><br>