<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Sergio Vera</b> <span dir="ltr">&lt;<a href="mailto:sergio.vera@alma3d.com">sergio.vera@alma3d.com</a>&gt;</span><br>
Date: Mon, Feb 20, 2012 at 2:11 PM<br>Subject: Re: [Insight-users] Buffered Regions<br>To: Vikash Gupta &lt;<a href="mailto:vikash.gupta@inria.fr">vikash.gupta@inria.fr</a>&gt;<br><br><br><div>Hi,</div>Instead of<div><pre>
<span style="color:rgb(128,0,128)">FineScalarIteratorType</span><span style="color:rgb(192,192,192)"> </span>itScalartemp(tempScalar,tempScalar-&gt;GetBufferedRegion());</pre><pre><font face="arial, helvetica, sans-serif">just use</font></pre>
<pre><pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,0,128)">FineScalarIteratorType</span><span style="color:rgb(192,192,192)"> </span>itScalartemp(tempScalar,region);</pre>

</pre><pre><font face="arial, helvetica, sans-serif">Regards</font></pre><div><div class="h5"><br><div class="gmail_quote">On Mon, Feb 20, 2012 at 1:26 PM, Vikash Gupta <span dir="ltr">&lt;<a href="mailto:vikash.gupta@inria.fr" target="_blank">vikash.gupta@inria.fr</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:Times New Roman">Yes Exactly, <div>But I am getting confused in linking the regions </div>

<div>So, say there is an imageObject &quot;image&quot; and I defined a smaller region with say &quot;region&quot;</div><div><br></div><div>How do I feed this smaller region to the iterator</div><div>Thanks</div><div>Vikash<br>

<br><hr><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px"><b>From: </b>&quot;Sergio Vera&quot; &lt;<a href="mailto:sergio.vera@alma3d.com" target="_blank">sergio.vera@alma3d.com</a>&gt;<br>

<b>To: </b>&quot;Vikash Gupta&quot; &lt;<a href="mailto:vikash.gupta@inria.fr" target="_blank">vikash.gupta@inria.fr</a>&gt;<br><b>Cc: </b><a href="mailto:insight-users@itk.org" target="_blank">insight-users@itk.org</a><br>

<b>Sent: </b>Monday, February 20, 2012 9:44:30 AM<br><b>Subject: </b>Re: [Insight-users] Buffered Regions<div><div><br><br><div>Hello Vikash,</div><div><br></div>If you fill the iterator with RequestedRegion or Buffered Region you will end (usually) with an iterator that moves over the whole image.<div>

If you want your iterator over the small region you need to link it with the region defined in the step 3 that you have just described.</div>
<div><br></div><div>Regards<br><br><div class="gmail_quote">On Sat, Feb 18, 2012 at 7:14 PM, Vikash Gupta <span dir="ltr">&lt;<a href="mailto:vikash.gupta@inria.fr" target="_blank">vikash.gupta@inria.fr</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:12pt;font-family:Times New Roman">Hello Everyone, <div>I am trying to iterate over a smaller region of an image, and Probably I am doing something wrong which I do not understand. </div><div>So, here is what i am doing</div>


<div><br></div><div>1. define the size of the region.</div><div>2. define the index at which the region should start</div><div>3. define the region using the above two values</div><div><br></div><div>Now when I define the iterator, How should I feed the region, should it be the function GetRequestedRegion() or GetBufferedRegion()</div>


<div><br></div><div>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:#800080">FineScalarIteratorType</span><span style="color:#c0c0c0"> </span>itScalartemp(tempScalar,tempScalar-&gt;GetBufferedRegion());</pre><pre style="margin-top:0px;margin-bottom:0px">
<br></pre><pre style="margin-top:0px;margin-bottom:0px">In the above line, tempScalar is the image object over which I am trying to iterate.</pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px">
Please suggest</pre><pre style="margin-top:0px;margin-bottom:0px">Thanks</pre><span><font color="#888888"><pre style="margin-top:0px;margin-bottom:0px">Vikash</pre>
<pre style="margin-top:0px;margin-bottom:0px"></pre></font></span></div></div></div><br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Sergio Vera<br><br> Alma IT Systems<br> C/ Vilana, 4B, 4º 1ª<br> 08022 Barcelona<br> T. <a href="tel:%28%2B34%29%20932%20380%20592" value="+34932380592" target="_blank">(+34) 932 380 592</a><br>

 <a href="http://www.alma3d.com" target="_blank">www.alma3d.com</a><br>

</div>
</div></div></blockquote><br></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Sergio Vera<br><br> Alma IT Systems<br> C/ Vilana, 4B, 4º 1ª<br> 08022 Barcelona<br> T. <a href="tel:%28%2B34%29%20932%20380%20592" value="+34932380592" target="_blank">(+34) 932 380 592</a><br>
 <a href="http://www.alma3d.com" target="_blank">www.alma3d.com</a><br>

</div></div></div>
</div><br><br clear="all"><div><br></div>-- <br>Sergio Vera<br><br> Alma IT Systems<br> C/ Vilana, 4B, 4º 1ª<br> 08022 Barcelona<br> T. (+34) 932 380 592<br> <a href="http://www.alma3d.com">www.alma3d.com</a><br>