[Insight-users] Buffered Regions

Sergio Vera sergio.vera at alma3d.com
Mon Feb 20 03:44:30 EST 2012


Hello Vikash,

If you fill the iterator with RequestedRegion or Buffered Region you will
end (usually) with an iterator that moves over the whole image.
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.

Regards

On Sat, Feb 18, 2012 at 7:14 PM, Vikash Gupta <vikash.gupta at inria.fr> wrote:

> Hello Everyone,
> I am trying to iterate over a smaller region of an image, and Probably I
> am doing something wrong which I do not understand.
> So, here is what i am doing
>
> 1. define the size of the region.
> 2. define the index at which the region should start
> 3. define the region using the above two values
>
> Now when I define the iterator, How should I feed the region, should it be
> the function GetRequestedRegion() or GetBufferedRegion()
>
> FineScalarIteratorType itScalartemp(tempScalar,tempScalar->GetBufferedRegion());
>
>
> In the above line, tempScalar is the image object over which I am trying to iterate.
>
>
> Please suggest
>
> Thanks
>
> Vikash
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>


-- 
Sergio Vera

 Alma IT Systems
 C/ Vilana, 4B, 4º 1ª
 08022 Barcelona
 T. (+34) 932 380 592
 www.alma3d.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120220/b6702889/attachment.htm>


More information about the Insight-users mailing list