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

Home » Public Forums » archive » Re: the length of line
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: the length of line [message #31056 is a reply to message #31051] Tue, 04 June 2002 05:17 Go to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article <adgr20$5r5$1@dipsy.missouri.edu>,
"Xiaoying Jin" <xje4e@mizzou.edu> wrote:

> How can I trace this line and get the length of the line?

With n pixels at coordinates (i,j)

length = TOTAL(SQRT((i[0:n-2]-i[1:n-1])^2 + (j[0:n-2]-j[1:n-1])^2))

Ken
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: how to modify the default 'printf' format
Next Topic: segmentation of more channel images

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

Current Time: Sat Oct 11 07:12:36 PDT 2025

Total time taken to generate the page: 0.72032 seconds