[Insight-users] mean value is a vector in SpatialObjectToImageStatisticsCalculator?

Luis Ibanez luis.ibanez at kitware.com
Sun Oct 17 06:31:11 EDT 2010


Hi Patrik,

The dimension of the "VectorType" that is returned by
the "GetMean()" method in the class

   itk::SpatialObjectToImageStatisticsCalculator

is related to the size of the MeasurementVector type
of the sample.

For a correct use, please look at:

Testing/Code/BasicFilters/
   itkSpatialObjectToImageStatisticsCalculatorTest.cxx


     Regards,


           Luis


-----------------------------------------------
On Tue, Oct 12, 2010 at 7:25 PM, Patrik Brynolfsson <
patrik.brynolfsson at radfys.umu.se> wrote:

> I tried to calculate the mean value of an image inside an ellipse, and i
> get a 3 element vector back. How do I interpret that? I was hoping for one
> double...
>
> The spatial object section in the itk software guide didn't shed any light
> on the situation, so where can I find some more info?
>
> Any help appreciated!
>
> Regards,
> ---
> Patrik Brynolfsson
>
>
>
> _____________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20101017/35d142a7/attachment-0001.htm>


More information about the Insight-users mailing list