<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>Dear All:</DIV>
<DIV> </DIV>
<DIV>I am trying to do some statistical classification following below ITK documents: <U><FONT color=#800080>Insight-StatisticalClassification.ppt.</FONT></U></DIV>
<DIV> </DIV>
<DIV><A href="http://www.na-mic.org/svn/NAMICSandBox/trunk/ITKAdvancedCourse/doc/presentations/Insight-StatisticalClassification.ppt">http://www.na-mic.org/svn/NAMICSandBox/trunk/ITKAdvancedCourse/doc/presentations/Insight-StatisticalClassification.ppt</A></DIV>
<DIV> </DIV>
<DIV>I am working on two program:</DIV>
<DIV> </DIV>
<DIV>1, ConverImageToVectorImage.cxx </DIV>
<DIV> </DIV>
<DIV> 2, ImageKmeansModelClassifier.cxx </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Both program works well individually, now I am trying to put them together, that means read 3 individual image and perform kmeans classification.</DIV>
<DIV>I have the following problem.</DIV>
<DIV> </DIV>
<DIV>1: the output of itk::ImageToVectorImageFilter< ImageType > is vector image type--------<FONT size=2>itk::VectorImage<unsigned char, 3u></FONT></DIV>
<DIV>2: the input of itk::ImageKmeansImageFilter is image type-----------------<FONT size=2>itk::Image<itk::Vector<unsigned char, 3u>, 3u> .</FONT></DIV>
<DIV> </DIV>
<DIV>If I used ImageKmeansImageFilter->SetInput(ImageToVectorImageFilter->GetOutput()), the program does not work.</DIV>
<DIV> </DIV>
<DIV>But if we save the output of ImageToVectorImageFilter, and read itk::Image, the program works.</DIV>
<DIV> </DIV>
<DIV>Can somebody told me how to convert itk:VectorImage to itk:Image? </DIV>
<DIV>Will itk::VectortoImageAdptor works? I looks the itk::VectortoImageAdptor documents, still not clear how to use it.</DIV>
<DIV> </DIV>
<DIV>Can somebody teach me more detial?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Baoyun</DIV></div><br>
</body></html>