[Insight-users] How to get image resolution?

Neil Panjwani paniwani at gmail.com
Wed May 4 14:54:07 EDT 2011


If by resolution you mean image spacing (usually in mm):

ImageType::SizeType spacing = image->GetSpacing();

spacing is a 1xN vector where N is the number of dimensions in your image

On Wed, May 4, 2011 at 1:01 PM, Abayiz <abayiz at yahoo.com> wrote:

> Hello all,
>
> I am using the Demons algorithm code provided in ITK to register dicom
> files, and get the result. Now I want to know the resolution of the result
> data. How can I confirm it?
>
> Thank you in advance.
>
> Abayiz
> _____________________________________
> 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.html
>
> 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://www.itk.org/mailman/listinfo/insight-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110504/aa1f7875/attachment.htm>


More information about the Insight-users mailing list