[ITK] [ITK-users] How to determine PixelType of itk::Image

Lambert Zijp ljzijp at gmail.com
Tue Mar 15 05:48:34 EDT 2016


I want to write a function that converts an arbitrary ITK image to another
format (AVS in my case).
It has been suggested that following functionprototype could de the job:
template<typename ValueType,unsigned int Dimension>
int ItkToAvs(AVSfield** ppAvs, typename
itk::Image<ValueType,Dimension>::Pointer pItkImage);

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?

Greetings,
Lambert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20160315/5c3786bd/attachment.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list