comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Calculate maximum diameter?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Calculate maximum diameter? [message #47379 is a reply to message #47300] Mon, 06 February 2006 07:41 Go to previous messageGo to previous message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
Jeff N. wrote:
> Hi folks,
>
> I have a set of roughly circular ROI's for which I want to compute the
> maximum diameter - the longest straight line from one point on the
> boundary of the ROI, through the center, to the opposing boundary.

Is it essential that it go through the center? In many contexts its
more useful to know the length of the longest straight line from any
given vertex to any other vertex. There's a pretty obvious O(N^2)
algorithm for finding that maximun distance.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Slowdown when creating/destroying Object Graphics components
Next Topic: projection info (.prj file) from ESRI Shape

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 07:14:53 PDT 2025

Total time taken to generate the page: 1.12785 seconds