[Insight-users] Buffered Regions

Bill Lorensen bill.lorensen at gmail.com
Mon Feb 20 08:43:50 EST 2012


Here's an example:
http://itk.org/Wiki/ITK/Examples/Iterators/ImageRegionIterator

On Mon, Feb 20, 2012 at 7:26 AM, Vikash Gupta <vikash.gupta at inria.fr> wrote:
> Yes Exactly,
> But I am getting confused in linking the regions
> So, say there is an imageObject "image" and I defined a smaller region with
> say "region"
>
> How do I feed this smaller region to the iterator
> Thanks
> Vikash
>
> ________________________________
>
> From: "Sergio Vera" <sergio.vera at alma3d.com>
> To: "Vikash Gupta" <vikash.gupta at inria.fr>
> Cc: insight-users at itk.org
> Sent: Monday, February 20, 2012 9:44:30 AM
> Subject: Re: [Insight-users] Buffered Regions
>
>
> 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
>
>
>
> _____________________________________
> 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
>



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the Insight-users mailing list