[Insight-users] How to get image resolution?
Abayiz
abayiz at yahoo.com
Thu May 5 03:38:15 EDT 2011
Hello,
Thank you very much for your answer, it helps me a lot :)
--- On Wed, 5/4/11, Neil Panjwani <paniwani at gmail.com> wrote:
From: Neil Panjwani <paniwani at gmail.com>
Subject: Re: [Insight-users] How to get image resolution?
To: "Abayiz" <abayiz at yahoo.com>
Cc: insight-users at itk.org
Date: Wednesday, May 4, 2011, 1:54 PM
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/20110505/5c4e493d/attachment.htm>
More information about the Insight-users
mailing list