1
% @(#)rgb.alq 13.1.1.1 (ESO-IPG) 06/02/98 18:15:07
6
By default Midas works with displays assuming PseudoColor mode, i.e. the
7
image data is stored in 8 bits per pixel displays. These pixel values are then
8
used as indices into a color lookup table (LUT). Since these indices are a
9
single 8bit value they always point to the same offset for red, green, blue in
12
In RGB mode (or TrueColor mode) the display uses 24 bits per pixel and each
13
display window in Midas has 3 image channels which are used for the red, green
14
and blue color. So for each pixel we can point to 3 different offsets for red,
15
green + blue in a LUT.
16
Since the LUT used in RGB mode is a linear (grayscale) one, the pixel values
17
are already the red, green and blue color values.
19
Setting up the Midas display as working in RGB mode is done via the command
20
INITIALIZE/DISPLAY which has to be given before a display is created.
21
INIT/DISP p5=RGB will switch to RGB mode.
24
Midas> initialize/disp ? ? ? ? rgb !set to RGB mode
25
Midas> create/disp 0 !that will create a display with
26
!3 image, 1 overlay channel
27
!chan 0 for red, 1 for green, 2 for blue
28
Midas> load/image redpict 0 !load 2-dim image redpict into red channel
29
Midas> load/image greenpict 1 !load image greenpict into green channel
30
Midas> load/image bluepict 2 !load image bluepict into blue channel
34
Except the visual display of all 3 channels together all Midas display software
35
just uses the first, red channel (no. 0) of the display. E.g. GET/CURSOR will
36
refer always to the frame which was loaded into channel 0.
38
This is our first shot at RGB, so it is not complete yet and will need still
39
debugging. Please, report any problems you have in RGB mode to us.
41
One known deficiency is COPY/DISPLAY which currently doesn't work for RGB mode.
42
Instead, create a Postscript copy of an RGB display-window on your screen as
47
make X-dump of an image of the display-window
51
in xv save the image as Postscript (Color) file copy.ps
53
$lpr -Pprinter copy.ps
60
To switch back from RGB mode to PseudoColor mode, do
67
PseudoColor mode on 24bit displays
68
----------------------------------
71
You can also work in PseudoColor mode on a device which only supports True
74
When starting up a display or graphics window for the first time,
75
Midas will display a message about emulating PseudoColor on top of a
77
Also the command SHOW/DISPLAY will give you that information.
79
Then you can work as in the old 8bit mode (pseudo color). However, there is
81
Since the pseudocolor effect is emulated, you have to always load the images
82
AFTER a specific LUT is loaded. Otherwise you will not see the effect of
83
the changed colors, i.e.
85
Midas> load/lut rainbow
86
Midas> load/image vlt_ut1_data
88
should show the image `vlt_ut1_data' in the colors of the Color LUT `rainbow'.
91
Midas> load/lut rainbow
92
Midas> load/image vlt_ut1_data
95
would NOT show the image with the colors of LUT `heat', even though the LUT bar
96
at the bottom of the display window would show it.
99
Midas> load/image vlt_ut1_data
101
will you see the new colors.