[Insight-users] How to calculate distance between 2 points in millimeter

Jon Haitz Legarreta jhlegarreta at vicomtech.org
Wed Jun 5 02:54:29 EDT 2013


Dear Cary,
ITK will give you the distance in image units, i.e. pixel/voxels. You
should ask your image object about its resolution (how many physical
distance units each pixel accounts for) and then do the conversion.

HTH,
JON HAITZ


On 4 June 2013 01:35, Cary lorey <developement.unity at gmail.com> wrote:

> Hello,
>
> I am trying to calculate the distance between 2 points on an image, I
> modified the code TestDistanceWidget according to my needs, but the problem
> when I measure the distance between the 2 points, the value is high, then I
> want a millimeter distance.
>
> Please please can you help me?
>
> thank you in advance.
>
> _____________________________________
> 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://www.itk.org/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130605/34701647/attachment.htm>


More information about the Insight-users mailing list