[Insight-users] How to map the output data from classifier if I use ImageToListAdaptor?

zhuang song songz at seas . upenn . edu
Tue, 19 Aug 2003 14:28:51 -0400


Hi,

I am new to use ITK. Here I meet two problems when I use 'make' command 
to compile the program.

1.   I use itk::Statistics::ImageToListAdaptor class to plug a 3D image 
object into a Sample object.
     Then I use itk::Statistics::SampleClassifier to do classification. 
To read out the result,
     I used  ClassifierType::OutputType * 
Membership=Classifier->GetOutput().    
     I don't know how to map the data in the Membership object to the 
original 3D image.

2.  one more quesiton about the compiler,
  Within a sub-function, there is always error message like:
    --- `Endpoint' was not declared in this scope;          //  I've 
defined the data type at the begining of the function.
    --- conflicting types for `int relativespace[2]';        //  I only 
defined 'relativespace' as 'double' data type, not as  'int'.

   I have clearly defined these variables in the function, and I didn't 
use them anywhere else. What is the possible problem?

Thanks for help.

Zhuang