[Insight-users] itkSampleMeanShiftClusteringFilter.txx

Luis Ibanez luis.ibanez at kitware.com
Thu Aug 24 08:51:42 EDT 2006


Hi Eric,

This filter is expecting a "Sample" as an input.

In order to apply the filter the population of pixels
in an image you must first use the ScalarImageToListAdaptor class:

http://www.itk.org/Insight/Doxygen/html/classitk_1_1Statistics_1_1ScalarImageToListAdaptor.html

For an example on how to use these two classes together
you may want to look at:

     Insight/Testing/Code/Numerics/Statistics/
         itkSampleMeanShiftClusteringFilterTest.cxx


Since you convert the population of pixels into a sample, this
will work for images of any dimension. (2D, 3D, 4D, 5D...).



   Regards,


      Luis


----------------
Eric John wrote:
> Hello all,
>  
> Does anyone have experience with how to 
> itkSampleMeanShiftClusteringFilter.txx in itk? Also, would it work for 
> 3d images? Thanks alot,
> Eric
>  
>




More information about the Insight-users mailing list