<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'>Hello Everyone,&nbsp;<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.&nbsp;</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><pre style="margin-top: 0px; margin-bottom: 0px; ">Vikash</pre>
<pre style="margin-top: 0px; margin-bottom: 0px; "><!--EndFragment--></pre></div></div></body></html>