<div dir="ltr">I want to write a function that converts an arbitrary ITK image to another format (AVS in my case).<div>It has been suggested that following functionprototype could de the job:</div><div><div>template<typename ValueType,unsigned int Dimension></div><div>int ItkToAvs(AVSfield** ppAvs, typename itk::Image<ValueType,Dimension>::Pointer pItkImage);</div></div><div><br></div><div>Now I want to know whether ValueType equals unsigned char or short or int etc. Also whether the pixels are single numbers or vectors. How does one do that?</div><div><br></div><div>Greetings,</div><div>Lambert</div><div><br></div><div><br></div></div>