[Insight-developers] using iterators in itk

Leila Baghdadi baghdadi at phenogenomics.ca
Thu May 19 11:16:25 EDT 2011


THANK YOU!

Great suggestion as per usual!

Leila

----- Original Message -----
From: Luis Ibanez <luis.ibanez at kitware.com>
Sent: Wed, 5/18/2011 6:31pm
To: Leila Baghdadi <baghdadi at phenogenomics.ca>
Cc: Insight-developers at itk.org
Subject: Re: [Insight-developers] using iterators in itk

Hi Leila,

One possible option is to:

1) use the ImportImageFilter to create an image
    that reuses the TBuffer that you have.

then

2) Use the MaximumMinimumCalculator to
    find the min and max of that resulting image.


       Luis


--------------------------
On Wed, May 18, 2011 at 4:55 PM, Leila Baghdadi
<baghdadi at phenogenomics.ca> wrote:
> hi everyone,
>
> I have  a  templated pointer (TBuffer *buffer) pointing to an image data ,
> in order to find the range of data I need to go through every value and
> figure out the minimum and maximum.
>
> I thought about using itk iterators but then I discovered I need to create
> an itkImage and then copy all the information from my templated pointer to
> it before I can proceed with iterators,
>
> Is this correct or am I missing something!
>
> any thoughts
>
> Thanks very much for your time
>
> Leila
>
> _______________________________________________
> 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://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-developers
>
>


More information about the Insight-developers mailing list