<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&nbsp; All:</DIV>
<DIV>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV>I am working on two program:</DIV>
<DIV>&nbsp;</DIV>
<DIV>1, ConverImageToVectorImage.cxx </DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;2, ImageKmeansModelClassifier.cxx&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</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>&nbsp;</DIV>
<DIV>1: the output of itk::ImageToVectorImageFilter&lt; ImageType &gt; is vector image type--------<FONT size=2>itk::VectorImage&lt;unsigned char, 3u&gt;</FONT></DIV>
<DIV>2: the input of&nbsp; itk::ImageKmeansImageFilter is image type-----------------<FONT size=2>itk::Image&lt;itk::Vector&lt;unsigned char, 3u&gt;, 3u&gt; .</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>If&nbsp;I used&nbsp;ImageKmeansImageFilter-&gt;SetInput(ImageToVectorImageFilter-&gt;GetOutput()), the program does not work.</DIV>
<DIV>&nbsp;</DIV>
<DIV>But if we save the&nbsp;output of ImageToVectorImageFilter, and read itk::Image, the program works.</DIV>
<DIV>&nbsp;</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&nbsp;&nbsp;documents, still not clear how to use it.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Can somebody teach me more detial?</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Baoyun</DIV></div><br>

      </body></html>