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

Home » Public Forums » archive » Line index
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Line index [message #5990] Fri, 15 March 1996 00:00 Go to previous message
Hermann Mannstein is currently offline  Hermann Mannstein
Messages: 22
Registered: September 1995
Junior Member
Hello,
is there a robust function which returns the indices within an image
(like the where function)
belonging to a line defined by two or more points. A short and dirty, but slow
solution, which is not applicable in batch procedures would be:

function LINE_INDEX1,ix,iy,points,count
o_device = !D.NAME
set_plot,'x'
window,1,/pixmap,xsize=ix,ysize=iy,colors=256
plots,points(*,0),points(*,1),/dev,/noclip
im = tvrd()
i = where(im,count)
set_plot,o_device
return,i
end

but I need something faster and I'm shure that somebody has already written it.
--
Regards,

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
Hermann Mannstein Tel.: +49 8153 28-2503
Institut fuer Physik der Atmosphaere or -2558
DLR - Oberpfaffenhofen Fax.: +49 8153 28-1841
Postfach 1116 \ mailto:H.Mannstein@dlr.de
D-82230 Wessling \ 0 http://www.op.dlr.de/~pa64
Germany ________\/|________
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`--------\--------'~ ~~~~~~~~~~~~~~~~~~~~
\
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: IDL FAQ
Next Topic: help to a freshman with show3

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

Current Time: Fri Oct 10 12:18:11 PDT 2025

Total time taken to generate the page: 1.20020 seconds