[Insight-users] Computing statistics on a region of an image
Luis Ibanez
luis.ibanez at kitware.com
Mon May 28 20:11:56 EDT 2012
Hi Cyrille,
mm, not quite the way to you describe it,...
but,...
I'm wondering if you may find useful the
Label Statistics image filter,
that will compute statistics from an image
by segregating them according to the labels
of another image.
You could then do this in parallel, if you
happen to mark your regions with lablels
in advance.
You have this one:
http://www.itk.org/Doxygen/html/classitk_1_1LabelStatisticsImageFilter_1_1LabelStatistics.html
and this one:
http://www.itk.org/Doxygen/html/itkLabelImageToStatisticsLabelMapFilter_8h_source.html
Luis
----------------------------------
On Mon, May 21, 2012 at 6:59 AM, Cyrille Faucheux <
cyrille.faucheux at etu.univ-tours.fr> wrote:
> Hi,
>
> I want to compute statistics (lets say for example, an histogram) on a
> region of an image.
>
> With an ImageToImageFilter, I know I have to specify the requested region
> at the end of my pipeline, and everything gets magically propagated
> upstream through the pipeline.
>
> Is there a generic way of doing this with a filter that do not produce an
> image, or should the filter handle the region of interest "manually" (with
> internal region iterators) ?
>
> Note: I dont want to use a RegionOfInterestImageFilter nor an
> ExtractImageFilter because it's too heavy (because later I will need to
> compute lots of statistics on lots of tiny region of my image).
>
> Thanks in advance.
>
> Cyrille
> _____________________________________
> 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.php
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120528/af197bcb/attachment.htm>
More information about the Insight-users
mailing list