<div dir="ltr">Dear itk users,<div>I'm new to itk and also not very proficient in C++...</div><div>I want to try some deformable registration methods implemented in itk, and need to convert my own format of images and volumes to itk, and back.</div><div>For conversion to itk, I use 'ImportImageFilter', because I do not want to make a copy of the pixels/voxels.</div><div>Converting itk images and volumes back to my own format, is giving me a headache; I'm confused about 'Image', SmartPointer and ConstPointer and template stuff.</div><div>Could you get me started by suggesting me a function prototype?</div><div><br></div><div>Something like:</div><div>int ItkToMyFormat(MyFormat** ppMyFormat, itk::Image* pItkImage);</div><div><br></div><div>The ItkImage can be any pixeltype, any dimension, and vector images should also be accepted by the conversion routine. In that conversion function, and need to be able to put a switch on pixeltype and number of dimensions.</div><div><br></div><div>Greetings,</div><div>Lambert</div></div>