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

Home » Public Forums » archive » invert_ct?
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: invert_ct? [message #4580 is a reply to message #4578] Wed, 07 June 1995 00:00 Go to previous message
knipp is currently offline  knipp
Messages: 68
Registered: January 1993
Member
In article 25me@yuma.ACNS.ColoState.EDU, dean@phobos.cira.colostate.edu writes:
>
> There is h_eq_ct and gamma_ct, but is there a invert_ct to invert the
> color table of a raster image. If not, what would be the simplist way
> to invert the color table of an image with IDL?
>
> Bonus question - what would be the simplist way of inverting the values
> of an image itself?
>
> Kelly Dean
> CSU/CIRA


Assuming 8-Bit images (8 Bits Per Pixel, grey values range 0 ... 255) try

invert_grey = 255b - original_grey




------------------------------------------------------------ ------------

Karlheinz Knipp
knipp@ipi.uni-hannover.de

------------------------------------------------------------ ------------
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: How to control plotting region when using !p.multi & X11 ???
Next Topic: No more plot_io, plot_oi, plot_oo calls in IDL version 4.0?????

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

Current Time: Sat Oct 11 10:30:01 PDT 2025

Total time taken to generate the page: 2.07909 seconds