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

Home » Public Forums » archive » Re: Display two images on one position : or even three!
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: Display two images on one position : or even three! [message #28628 is a reply to message #28624] Wed, 02 January 2002 13:54 Go to previous message
Martin Downing is currently offline  Martin Downing
Messages: 136
Registered: September 1998
Senior Member
Hi Oliver,
I've been following this thread trying to work out exactly what you want to
do with your images :)
Coming from a background of 8bit graphics, I have often opt for creating a
color table of greyscale with a few bright colors for overlay at one end of
the colortable. However, I dont think that is what you want as it looks like
you are wanting to use more than one color table for different bits of the
image. Ok so heres how: take advantage of Graphics functions and use GXor

The following shows a distace image displayed with the top values using the
hot body scale, middle using grey-scale and lower using black-white color
scale, this should give you the idea.
The key point is to OR each region using a image mask so that no area is
updated twice

; start with GXcopy
IDL> device, set_graphics = 3

IDL> loadct, 3

% LOADCT: Loading table RED TEMPERATURE

IDL> tv, im * ((im gt 130))

IDL> loadct, 0

% LOADCT: Loading table B-W LINEAR

; now switch to GXor
IDL> device, set_graphics = 7

IDL> tv, im * ((im le 130) and (im gt 100))

IDL> loadct, 1

% LOADCT: Loading table BLUE/WHITE

IDL> tv, im * (im lt 100)


hope this is useful - if not its quite pretty anyhoo!

Martin
----------------------------------------
Martin Downing,
Clinical Research Physicist,
Grampian Orthopaedic RSA Research Centre,
Woodend Hospital, Aberdeen, AB15 6LS.

"Emmler, Oliver" <oemmler@ix.urz.uni-heidelberg.de> wrote in message
news:a0v7vc$s0g$1@news.urz.uni-heidelberg.de...
>> But this goes even further afield from "easy" than my
>> previous example, so I'm not sure it would meet
>> your criteria. :-)
>
> Thanks. I tried using your procedures. The scaling of the
colortable/images
> will cause the picture to lose details. I think i have to use the
following
> loop. Is there any way to speed it up ?
>
> FOR x = 0,510 DO BEGIN
> FOR y = 0,510 DO BEGIN
> IF highlight(x,y) NE 0 THEN TV, highlight(x:x+1,y:y+1),x,y
> ENDFOR
> ENDFOR
>
> With Best Regards for the new year,
>
> Oliver
>
>
>
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Display two images on one position
Next Topic: Running PV-Wave-Files in IDL?

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

Current Time: Thu Oct 09 20:37:41 PDT 2025

Total time taken to generate the page: 1.27916 seconds