[Insight-users] Fwd: Buffered Regions

Sergio Vera sergio.vera at alma3d.com
Mon Feb 20 08:12:11 EST 2012


---------- Forwarded message ----------
From: Sergio Vera <sergio.vera at alma3d.com>
Date: Mon, Feb 20, 2012 at 2:11 PM
Subject: Re: [Insight-users] Buffered Regions
To: Vikash Gupta <vikash.gupta at inria.fr>


Hi,
Instead of

FineScalarIteratorType itScalartemp(tempScalar,tempScalar->GetBufferedRegion());

just use

FineScalarIteratorType itScalartemp(tempScalar,region);

Regards


On Mon, Feb 20, 2012 at 1:26 PM, 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
>
>
>


-- 
Sergio Vera

 Alma IT Systems
 C/ Vilana, 4B, 4º 1ª
 08022 Barcelona
 T. (+34) 932 380 592
 www.alma3d.com



-- 
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/9d255a64/attachment.htm>


More information about the Insight-users mailing list