[Insight-users] Applying labels from KmeansModelEstimator toinput image pixels

David Doria daviddoria at gmail.com
Fri Nov 12 10:15:11 EST 2010


On Thu, Nov 11, 2010 at 10:25 PM, Magnotta, Vincent A
<vincent-magnotta at uiowa.edu> wrote:
> I would suggest that you look at itkScalarImageKmeansImageFilter.txx. This
> is essentially performing this classification using scalar images. A
> ListSampleAdaptor is used to classify the image. The algorithm then iterates
> over the Samples setting the image. Since this is a Adaptor class, it is
> assumed that the ordering of the samples is the same as the image.
>
> Vince

Thanks Vince. I think I have the big picture structure now, but I must
still be doing something incorrectly.

Here is my current attempt:
http://www.itk.org/Wiki/ITK/Examples/Broken/Statistics/ImageKmeansModelEstimator

It segfaults on the first call to

membershipIterator.GetClassLabel();

Any ideas why that would happen?

Thanks,

David


More information about the Insight-users mailing list