[Insight-users] itkKmeansModelEstimator

Tom Nash tomnash1 at hotmail.com
Fri Oct 17 19:31:12 EDT 2008


Hi All

Taking both Luis's and Karthik's advice, i have redirected the output of the ImageKmeansModelEstimator to the input of the ImageClassifierBase Classifier and used the membershipFunctions produced in the estimator and successfully got the result after classification. However I have basically 4 classes and want 4 separate output files for each one of the classes. I am basically trying to segment the classified image. However in ImageClassifierBase  I can get only 4 classes together. I can do an iterative technique and classify the classified image into 3 classes and then into 2 classes and so on and use SubtractImageFilter to get the components. However I want to retain the spatial information. Is there anyway to separate the 4 classes from the classified image? I am unable to find such a filter. Please advise.

Thanks a lot for everything.

Sincerely
Tom



> Date: Thu, 16 Oct 2008 12:01:04 -0400
> From: karthik.krishnan at kitware.com
> To: tomnash1 at hotmail.com; insight-users at itk.org
> Subject: Re: itkKmeansModelEstimator
> 
> Tom:
> 
> You might be looking from ScalarImageKMeansFilter, which  will
> generate the KMeans followed by a classification based on a
> Euclidean minumum distance rule to generate a label map
> segmentation of your image.
> 
> It internally use the itkKMeansModelEstimator to generate the
> KMeans. And then uses a itk::EuclideanDistance in conjuction
> with a itk::MinimumDistance rule to generate the label map
> based on those means.
> 
> hope this helps
> 
> On Tue, Oct 14, 2008 at 10:49 PM, Tom Nash <tomnash1 at hotmail.com> wrote:
> > Hi Karthik
> >
> > I am using itkKmeansModelEstimator for k-means segmentation. However i see
> > no function to view the output image after classification.  The older
> > ImageKmeansImageFilter had a kmeansFilter->GetOutput() function, but I see
> > no analogous function in the itkKmeansModelEstimator. How do I get the
> > output? I want to parse it into the writer object. I am using nifti images.
> >
> > Please help
> >
> > Sincerely
> > Tom
> >
> > ________________________________
> > Hottest news and in-depth analysis that goes beyond the headlines. Only on
> > MSN News Check it out!
> 
> 
> 
> -- 
> Karthik Krishnan
> R&D Engineer,
> Kitware Inc.
> Ph: 518 371 3971 x119
> Fax: 518 371 3971

_________________________________________________________________
Searching for the best deals on travel? Visit MSN Travel.
http://in.msn.com/coxandkings
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20081017/1dc3da3c/attachment.htm>


More information about the Insight-users mailing list