[Insight-users] GetNeighborhood and Neighborhood with even size
Luis Ibanez
luis.ibanez at kitware.com
Thu Mar 25 14:34:58 EDT 2010
Hi Eduardo,
1) How to calculate the mean of a neighborhood:
Use the
itkMeanImageFunction.h
2) How to calculate the variance of a neighborhood:
Use the:
itkVarianceImageFunction.h
3) To get a region of interest from an ITK neighborhood:
You can call the GetSize(i) methods, to get the number
of pixels along each dimension, then consider that the
neighborhood is centered around its current position.
4) You can create neighborhoods of even size by using the
itkShapedNeighborhoodIterator.h
Regards,
Luis
----------------------------------------------------------------------------------------
On Mon, Mar 22, 2010 at 2:51 PM, <edoardo.belletti at alice.it> wrote:
> Hi
> Is there anyone who can tell me how can I calculate the mean and the
> variance of a Neighborhood or simply how can I convert the output of
> GetNeighborhood() into a matrix or even better into an ITK region of
> interest?
> Moreover is it possible to create a neighborhood with even size? for example
> I need 10x10. Because in the itkSoftwareGuide I have found only to create
> with odd size.
>
> Thank you very much
> Edaordo
>
> _____________________________________
> 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
>
>
More information about the Insight-users
mailing list