Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > 37ce2601040f8edc2329d4714238376a > files > 679

eso-midas-doc-13SEPpl1.2-3.mga5.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--Converted with LaTeX2HTML 98.1p1 release (March 2nd, 1998)
originally by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>XWindow display</TITLE>
<META NAME="description" CONTENT="XWindow display">
<META NAME="keywords" CONTENT="vol1">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<LINK REL="STYLESHEET" HREF="vol1.css">
<LINK REL="next" HREF="node108.html">
<LINK REL="previous" HREF="node99.html">
<LINK REL="up" HREF="node99.html">
<LINK REL="next" HREF="node101.html">
</HEAD>
<BODY >
<!--Navigation Panel-->
<A NAME="tex2html1782"
 HREF="node101.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
 SRC="icons.gif/next_motif.gif"></A> 
<A NAME="tex2html1778"
 HREF="node99.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="icons.gif/up_motif.gif"></A> 
<A NAME="tex2html1772"
 HREF="node99.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="icons.gif/previous_motif.gif"></A> 
<A NAME="tex2html1780"
 HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
 SRC="icons.gif/contents_motif.gif"></A> 
<A NAME="tex2html1781"
 HREF="node216.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index"
 SRC="icons.gif/index_motif.gif"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html1783"
 HREF="node101.html">Using Image Channels</A>
<B> Up:</B> <A NAME="tex2html1779"
 HREF="node99.html">Image Displays</A>
<B> Previous:</B> <A NAME="tex2html1773"
 HREF="node99.html">Image Displays</A>
<BR>
<BR>
<!--End of Navigation Panel-->

<H2><A NAME="SECTION001021000000000000000">&#160;</A>
<A NAME="XWindow_display">&#160;</A>
<BR>
XWindow display
</H2>
With the term <TT>XWindow</TT> display we refer to a bitmapped screen supporting
the X-11 <BR>
Window environment. These displays have less functionality provided in
hardware than the ``classical'' peripheral image displays. On the other hand
they offer much more flexibility via software. For example, display screens of
 different sizes may be created and different number of image channels 
may be connected to any one display. <BR>
MIDAS starts up an independent server process,
the <I>IDI display server</I>, which owns all X11 related data structures. 
MIDAS applications do not interact directly with the windows but send messages 
to the server which then performs the actual task.
Like this we can keep the windows alive while the different applications 
are executed and terminated, one by one. <BR>
Also, keep in mind that all interaction with the display will only work
while the input focus is in the display window (either enforced by clicking
the mouse in that window or just moving the cursor into it - that depends on
how your window manager is set up).

<P>
&nbsp;
<BR>
Depending upon the graphics hardware on your system you can work in
PseudoColor mode (8 bits per pixel) or RGB mode (24 bits per pixel).
In both modes the values of image pixels are scaled to an integer number
in the  range [0,255]. 
That number then serves as an index into a Color Lookup Table (LUT) which determines the actual color of that pixel.
In PseudoColor mode that index is the same for the red, green and blue color,
whereas in RGB mode we use three image pixels per screen pixel and they serve 
as independent indices for the three colors. These three image pixels maybe in
different planes of the same 3-dim image or in different 2-dim images.
Accordingly, we use three image memories (channel 0, 1 and 2) for the red, 
green and blue component of an image.
You set MIDAS to PseudoColor or RGB mode via the command 
<TT>INITIALIZE/DISPLAY</TT>  (by default PseudoColor mode is set up).
<BR>
Assuming you have a 3-dim image <I>realima.bdf</I> with the red part in the 1st
plane, green part in the 2nd and blue part in the 3rd plane, you can either
load each plane individually into the corresponding image channel:<BLOCKQUOTE>
<TT>INITIALIZE/DISPLAY p5=RGB <BR>
LOAD/IMAGE realima,1 0 <BR>
LOAD/IMAGE realima,2 1 <BR>
LOAD/IMAGE realima,3 2 </TT>!note that channels begin with 0</BLOCKQUOTE> or do it in one go:<BLOCKQUOTE>
<TT>INITIALIZE/DISPLAY p5=RGB <BR>
LOAD/IMAGE realima,1,3 0,...</TT></BLOCKQUOTE>The red plane is stored in channel 0, the green plane in channel 1 and the
blue plane in channel 2. All three planes are combined for the display of
the image.

<P>
&nbsp;
<BR>
With the command <TT>RESET/DISPLAY</TT> we delete all existing display (and
graphics) windows and get back into initial mode, which is PseudoColor.
<BR>
You can only work within one Color mode at the same time. However, if the
hardware supports it, you can run two parallel Midas sessions with one using
PseudoColor mode and the other one RGB mode.
&nbsp;
<BR>
Image displays are created on the screen via the 
<TT>CREATE/DISPLAY</TT> command. An ``image display'' is then represented by
a window on the bitmapped screen, also called ``display window'' in the 
following. It may contain one or several image 
channels (max. 12 currently) in PseudoColor, whereas you always have 3 channels
in RGB mode.
An overlay channel for graphics and text and an alpha memory are
associated with an image display.
<BR>
The image channels may have the same size as the display window or
could be larger.
These channels are not realised
in hardware (<I>e.g.</I> video memory) like for a peripheral image display, but
exist as data structures in main memory. <BR>
Images may be displayed (<I>loaded</I> in MIDAS terminology) in image channels
and it is also possible to draw graphs and write text into these channels.
For the (single) overlay channel only drawing and writing of text is supported
which will then be shown on top of the currently active image channel. <BR>
The alpha memory is used to display information about the displayed image.

<P>
&nbsp;
<BR>
Initially each display is provided with a grayscale LUT.
<BR>
You may create several image displays at the same time on your bitmapped
screen even though only one display can be the current active display window at
any time. With the command <TT>ASSIGN/DISPLAY</TT> you switch from one
display to the next.
&nbsp;
<BR>
Each image channel of a display window has independent scroll and 
zoom (emulated in software).
You can also connect a <I>zoom window</I> to a display window. This window can
then be used by commands such as <TT>GET/CURSOR</TT> 
and <TT>VIEW/IMAGE</TT> to provide a zoomed view of the subframe pointed at with
the mouse.
&nbsp;
<BR>
The display windows can be moved and resized. After resizing you have to reload
the previously loaded (displayed) image again.
&nbsp;
<BR>
Up to 9 different display windows of differing size can be created in a 
MIDAS session at a given moment.
By running several MIDAS sessions in parallel you can create
an unlimited amount of display windows which share the same LUT or
not, depending upon the capabilities of your X-display system.
&nbsp;
<BR>
You can also create display windows on other X-displays within a MIDAS
session. A special kind of display windows, so-called <I>shadow</I> displays
can be connected to any display window created before. 
Then, all activity on that display
window is replayed on the shadowing window (which could be on an X-display
in another room).
The most important commands associated with display windows
 are: <BR>
&nbsp;
<BR>
<TT>INITIALIZE/DISPLAY</TT> - <I>setup Color mode, size of LUTs, etc.</I>
<BR>
<TT>CREATE/DISPLAY</TT> - <I>create an image display with image channels(s)</I>
<BR>
<TT>ASSIGN/DISPLAY</TT> - <I>switch between different display windows</I>
<BR>
<TT>DELETE/DISPLAY</TT> - <I>delete a display window</I>
<BR>
<TT>SHOW/DISPLAY</TT> - <I>show status of active display </I>
<BR>
<TT>MODIFY/DISPLAY</TT> - <I>change display window from full view to icon status</I>
<BR>
<TT>RESET/DISPLAY</TT> - <I>delete all windows and get back into inital state</I>

<P>
<BR><HR>
<!--Table of Child-Links-->
<A NAME="CHILD_LINKS">&#160;</A>
<UL>
<LI><A NAME="tex2html1784"
 HREF="node101.html">Using Image Channels</A>
<LI><A NAME="tex2html1785"
 HREF="node102.html">Using the Cursors</A>
<LI><A NAME="tex2html1786"
 HREF="node103.html">Look-Up Tables</A>
<LI><A NAME="tex2html1787"
 HREF="node104.html">Intensity Transformation Tables</A>
<LI><A NAME="tex2html1788"
 HREF="node105.html">Graphics</A>
<LI><A NAME="tex2html1789"
 HREF="node106.html">Alpha Memory</A>
<LI><A NAME="tex2html1790"
 HREF="node107.html">Graphical User Interface - XDisplay</A>
</UL>
<!--End of Table of Child-Links-->
<HR>
<!--Navigation Panel-->
<A NAME="tex2html1782"
 HREF="node101.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
 SRC="icons.gif/next_motif.gif"></A> 
<A NAME="tex2html1778"
 HREF="node99.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="icons.gif/up_motif.gif"></A> 
<A NAME="tex2html1772"
 HREF="node99.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="icons.gif/previous_motif.gif"></A> 
<A NAME="tex2html1780"
 HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
 SRC="icons.gif/contents_motif.gif"></A> 
<A NAME="tex2html1781"
 HREF="node216.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index"
 SRC="icons.gif/index_motif.gif"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html1783"
 HREF="node101.html">Using Image Channels</A>
<B> Up:</B> <A NAME="tex2html1779"
 HREF="node99.html">Image Displays</A>
<B> Previous:</B> <A NAME="tex2html1773"
 HREF="node99.html">Image Displays</A>
<!--End of Navigation Panel-->
<ADDRESS>
<I>Petra Nass</I>
<BR><I>1999-06-09</I>
</ADDRESS>
</BODY>
</HTML>