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

Home » Public Forums » archive » Re: Q: negative black & white image
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Q: negative black & white image [message #6895] Mon, 19 August 1996 00:00
peter is currently offline  peter
Messages: 80
Registered: February 1994
Member
Runar J|rgensen (runar.jorgensen@fys.uio.no) wrote:
: Hi,
: I produce a black/white image using

: loadct,0
: tvscl,image

: What I want to do now is make an negative of this image.

loadct,0
tvscl,max(image)-image

Peter
Re: Q: negative black & white image [message #6897 is a reply to message #6895] Mon, 19 August 1996 00:00 Go to previous message
Christian Marquardt is currently offline  Christian Marquardt
Messages: 7
Registered: August 1996
Junior Member
Hallo,

Runar J|rgensen wrote:
>
> Hi,
> I produce a black/white image using
>
> loadct,0
> tvscl,image
>
> What I want to do now is make an negative of this image.
> Any suggestions?
>

Try these:

tvlct, /get, r, g, b
r = reverse(r)
g = reverse(g)
b = reverse(b)
tvlct, r, g, b

You might not want to reverse all color indices in order not to change
fore- and background. You might also want to take of the color common
block...

Hope this helps,

Chris.

------------------------------------------------------------ ---------------
Christian Marquardt

Meteorologisches Institut der | tel.: (+49) 30-838-71170
Freien Universitaet Berlin | fax.: (+49) 30-838-71167
Carl-Heinrich-Becker-Weg 6-10 | email: marq@strat01.met.fu-berlin.de
D-12165 Berlin |
------------------------------------------------------------ ---------------
Re: Q: negative black & white image [message #6898 is a reply to message #6895] Mon, 19 August 1996 00:00 Go to previous message
Liam Gumley is currently offline  Liam Gumley
Messages: 473
Registered: November 1994
Senior Member
Runar J|rgensen wrote:
> Hi,
> I produce a black/white image using
> loadct,0
> tvscl,image
> What I want to do now is make an negative of this image.

How about

tv,255-bytscl(image)

Cheers,
Liam.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Reading the serial port (SunOs)
Next Topic: FindFile broken in 4.0.1b under WFW3.11

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

Current Time: Wed Oct 08 19:19:01 PDT 2025

Total time taken to generate the page: 0.00491 seconds