<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hi All<br><br>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.<br><br>Thanks a lot for everything.<br><br>Sincerely<br>Tom<br><br><br><br>> Date: Thu, 16 Oct 2008 12:01:04 -0400<br>> From: karthik.krishnan@kitware.com<br>> To: tomnash1@hotmail.com; insight-users@itk.org<br>> Subject: Re: itkKmeansModelEstimator<br>> <br>> Tom:<br>> <br>> You might be looking from ScalarImageKMeansFilter, which will<br>> generate the KMeans followed by a classification based on a<br>> Euclidean minumum distance rule to generate a label map<br>> segmentation of your image.<br>> <br>> It internally use the itkKMeansModelEstimator to generate the<br>> KMeans. And then uses a itk::EuclideanDistance in conjuction<br>> with a itk::MinimumDistance rule to generate the label map<br>> based on those means.<br>> <br>> hope this helps<br>> <br>> On Tue, Oct 14, 2008 at 10:49 PM, Tom Nash <tomnash1@hotmail.com> wrote:<br>> > Hi Karthik<br>> ><br>> > I am using itkKmeansModelEstimator for k-means segmentation. However i see<br>> > no function to view the output image after classification. The older<br>> > ImageKmeansImageFilter had a kmeansFilter->GetOutput() function, but I see<br>> > no analogous function in the itkKmeansModelEstimator. How do I get the<br>> > output? I want to parse it into the writer object. I am using nifti images.<br>> ><br>> > Please help<br>> ><br>> > Sincerely<br>> > Tom<br>> ><br>> > ________________________________<br>> > Hottest news and in-depth analysis that goes beyond the headlines. Only on<br>> > MSN News Check it out!<br>> <br>> <br>> <br>> -- <br>> Karthik Krishnan<br>> R&D Engineer,<br>> Kitware Inc.<br>> Ph: 518 371 3971 x119<br>> Fax: 518 371 3971<br><br /><hr />Watch useful tips on recipes, fitness, yoga and fashion only on MSN videos. <a href='http://video.msn.com/?mkt=en-in' target='_new'>Try it!</a></body>
</html>