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

Home » Public Forums » archive » overplotting lines over images
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: overplotting lines over images [message #7498 is a reply to message #7401] Thu, 14 November 1996 00:00 Go to previous message
Christian Soeller is currently offline  Christian Soeller
Messages: 46
Registered: August 1996
Member
Mirko Vukovic <mirko.vukovic@grc.varian.com> writes:

> I want to overplot lines over an image. The way I'd like it is to OR
> it, in the sense that the line is dark over light parts and light over
> dark parts. Thought that I've seen that written or mentioned somewhere,
> but cannot find anything in the manual.

one possibility: to draw a line from [x1,y1] to [x2,y2] get the x and y
indices which that line segment would cover in your image, e.g. using
linepts from the jhu library. Now modify all the pixel values in a copy of
your original image to do what you want and display it:

cpy = image ; make copy
linepts, x1, y1, x2, y2, jx, jy ; get pixel indices of line segment
cpy(jx,jy) = max(image)-image(jx,jy) ; invert pixels along that line
tvscl cpy ; and display

Hope this helps,

Christian

------------------------------------------------------------ --------
Christian Soeller mailto: csoelle@sghms.ac.uk
St. Georges Hospital Medical School Dept. of Pharmacology
Cranmer Terrace London SW17 0RE
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Building contingency tables?
Next Topic: Writing mpeg from IDL

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

Current Time: Wed Oct 08 15:28:12 PDT 2025

Total time taken to generate the page: 0.00457 seconds