[Insight-users] Calculation of the distance between the 2 farthest voxels of an image
Pedro Névoa
pedronevoa at gmail.com
Sun Jun 12 09:58:33 EDT 2011
Hi,
I forgot one detail. Not the distance between any voxels, but the distance
between the 2 white (255) farthest voxels on a black (0) background!
Thank you.
Regards,
2011/6/12 Terry Yoo <tyoo at mail.nih.gov>
>
> Pedro:
>
> x^2 + y^2 + z^2 = d^2
>
> Simply: The farthest distance is from one corner to the opposite corner of
> a rectangular volume.
>
> max-distance = Sqrt((x-max * x-max) + (y-max * y-max) + (z-max * z-max))
>
> Or am I missing something, Pedro? Were you asking something else?
>
> -Terry
>
> Terry S. Yoo, PhD
> Office of High Performance Computing and Communications
> National Library of Medicine
> National Institutes of Health
> tyoo at mail.nih.gov
>
>
>
> On Jun 11, 2011, at 4:54 PM, Pedro Névoa wrote:
>
> > Hello,
> >
> > Does anyone know a method to calculate the distance between the 2
> farthest voxels of an image?
> >
> > Thank you.
> >
> > Regards,
> >
> > --
> > Pedro Névoa
> >
> > <ATT00001..txt>
>
>
--
Pedro Névoa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110612/9762c7bd/attachment.htm>
More information about the Insight-users
mailing list