home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / plotting / imagetoo / imagetl1.lha / Imagetool / imagetool.help / imagetool_menus < prev   
Encoding:
Text File  |  1990-09-20  |  23.6 KB  |  441 lines

  1.  
  2.  
  3.             Imagetool_menus                                 February 1988
  4.  
  5.  
  6.  
  7.  
  8.             CONTENTS
  9.  
  10.  
  11.             The Main Menus
  12.                  The Image Menu
  13.                  The Edit Menu
  14.                  The Palette Menu
  15.                  The Zoom Menu
  16.                  The Graph Menu
  17.                  The FTP Menu
  18.                  The Help Menu
  19.                  The Option Menu
  20.  
  21.  
  22.             THE MAIN MENUS
  23.  
  24.             The following sections describe in detail the  functionality
  25.             of each option in the main menus and how to use them.
  26.  
  27.  
  28.  
  29.             The IMAGE Menu
  30.  
  31.             The IMAGE menu implements disk I/O operations.  The  options
  32.             on this menu allow you to load an image file from disk, save
  33.             from screen to a raster file, animate  from  a  sequence  of
  34.             images,  or  store up to 10 frames (with different palettes,
  35.             optional) into a memory stack.
  36.  
  37.             LOAD      To load an image from a raw  raster  file  (for  a
  38.                       description  of  file formats, see the File Format
  39.                       help file), enter the file name at the  text  item
  40.                       labelled  "Image", and the image dimensions at the
  41.                       items labelled "Xdim" and "Ydim"  on  the  control
  42.                       panel.   Then  select  LOAD on the IMAGE menu, and
  43.                       the image will appear on the canvas.   If  you  do
  44.                       not  enter  the correct image dimensions, you will
  45.                       probably see some garbage on the screen.
  46.  
  47.                       NOTE: Wildcard characters can be  used  for  image
  48.                       file names.
  49.  
  50.                       You may choose to load an image file in one of the
  51.                       raster   file   formats  supported  by  Imagetool.
  52.                       Imagetool  version  1.0  supports  Raw  format  (a
  53.                       stream  of  binary, no header; one byte per pixel,
  54.                       row by row, left to right) and the floating  point
  55.                       format  (Sun  floating  point  format  -  4bytes).
  56.                       Future versions of Imagetool will support the NCSA
  57.                       raster file format.
  58.  
  59.                       To choose a  specific  format  for  file  loading,
  60.                       select the IMAGE menu item LOAD, pull right to pup
  61.                       up the format  submenu,  and  select  the  desired
  62.                       format.
  63.  
  64.                       NOTE:  When  floating  point   format   is   used,
  65.                       Imagetool  reads  in  the  original  data file (in
  66.                       floating point format), converts it to a raw image
  67.                       file (one byte per pixel, values ranging from 0 to
  68.                       255)  utilizing  scaling  information   the   user
  69.                       provides  in  a dialog box which appears, and then
  70.                       displays  it  on   the   screen.    It   takes   a
  71.                       considerable amount of CPU time to do the floating
  72.                       point-to-integer conversion. It is  advisory  that
  73.                       the   user   save  the  converted  image  under  a
  74.                       different name for fast reference later on.
  75.  
  76.             SAVE      This option allows you to save a single  image,  a
  77.                       composite  image, or a selected region of an image
  78.                       to a disk file. To select a region of the  canvas,
  79.                       simply  drag  out  a  box by depressing the middle
  80.                       mouse button as you move the cursor.  By  choosing
  81.                       SAVE,  the  selected  region (otherwise the entire
  82.                       image recently loaded)  will  be  written  to  the
  83.                       disk.  Once  you  select the SAVE option, a dialog
  84.                       box will appear asking for the  file  name  to  be
  85.                       created.  You  may enter a character string ending
  86.                       with a return key (or select  the  OK  button)  to
  87.                       proceed,   or   click  on  the  CANCEL  button  to
  88.                       interrupt  the  operation.  Upon   completion,   a
  89.                       message  will  appear  in  the tty window (the top
  90.                       subwindow) telling  you  the  name  of  the  newly
  91.                       created file with the exact dimensions appended.
  92.                       Similar to the LOAD option, you may choose to save
  93.                       the  image  in  a specific raster format.  Version
  94.                       1.0 supports only the raw binary format.
  95.  
  96.             ANIMATE   To animate a sequence of images, you must  specify
  97.                       a  character  string  that represents the sequence
  98.                       containing wild card characters  (such  as  *,  ?,
  99.                       etc.,  all  Unix  conventions  on wildcards apply)
  100.                       along with the correct dimensions.  For  instance,
  101.                       "denab*"  and "denab?[1357]*" are legal character
  102.                       strings that resolve to multiple images.
  103.  
  104.                       As soon as the animation  begins,  four  temporary
  105.                       buttons will appear on the control panel. They are
  106.                       PAUSE, LAST, NEXT, +, and --.  PAUSE is  a  toggle
  107.                       button  with  which  you  can  stop and resume the
  108.                       animation.  After you pause the animation, you may
  109.                       click  on  LAST or NEXT to single step through the
  110.                       frames (backward and forward). + and -- adjust the
  111.                       animation speed (increasing and decreasing).
  112.                       To quit animation at any time, click on the CANCEL
  113.                       button.
  114.  
  115.                       This option also provides you  with  zoomed  (2x2)
  116.                       animation. Use it only on small size images.
  117.  
  118.             STACK     The STACK option allows the user to store up to 10
  119.                       frames  (possibly  with different palettes) into a
  120.                       memory stack so that you can quickly flip  through
  121.                       them for examination or comparison.
  122.  
  123.                       As soon as  you  select  the  option  STACK,  four
  124.                       temporary   choice  buttons  will  appear  on  the
  125.                       control panel.
  126.  
  127.                       NOTE: The user can make a selection from a  choice
  128.                       button  either  by  selecting  the  desired choice
  129.                       directly, i.e. by selecting  from  the  associated
  130.                       menu  with the right mouse button, or by selecting
  131.                       the button label with the left mouse button, which
  132.                       causes  the  current choice to advance to the next
  133.                       choice (or backup to the previous  choice  if  the
  134.                       shift key is pressed while selecting).
  135.  
  136.                       You may select on the  STORE  button  to  store  a
  137.                       frame  into  the next available slot on the stack,
  138.                       or choose a specific empty slot.  After  you  fill
  139.                       the  slots with image frames, you may examine them
  140.                       by clicking the choice button SHOW. Use the DELETE
  141.                       button to clear an entry in the stack, or FLUSH to
  142.                       clean up  the  whole  stack.  To  exit  the  STACK
  143.                       operation, press the button Cancel.
  144.  
  145.             PRINT     Make color hard copy of the canvas or  a  selected
  146.                       region.
  147.  
  148.  
  149.             The EDIT Menu
  150.  
  151.             This menu enables you to edit an image on the  canvas.   You
  152.             may  cut  (copy)  a  region  of  the  canvas and paste it to
  153.             another part of the canvas,  or  clear  any  region  of  the
  154.             canvas. Together with the SAVE option in the IMAGE menu, you
  155.             are able to do sophisticated image composition.
  156.  
  157.             First, define a region to be edited (draw a box by  dragging
  158.             with the middle mouse button down), select the option CUT or
  159.             COPY from the EDIT menu, which will copy the selected region
  160.             onto  an  in-core  clipboard.  To  paste  whatever is on the
  161.             clipboard to canvas, select the option PASTE, hold down  the
  162.             middle  mouse  button on the canvas, and drag to the desired
  163.             position, and finally  release  the  button.  Until  you  do
  164.             another  cut or copy, what is on the clipboard remains there
  165.             (i.e. you may do multiple pastes).
  166.  
  167.             You may also clear any  part  of  the  canvas  you  want  by
  168.             selecting  the  region then choose the option CLEAR from the
  169.             EDIT menu.
  170.  
  171.  
  172.             The PALETTE Menu
  173.  
  174.             This menu enables you to control  the  color  look-up  table
  175.             (CLUT)  in  various  ways.   The options in the PALETTE menu
  176.             include palette load,  restore,  display,  modify  (contour,
  177.             fiddle, rotate and transpose), and save.
  178.  
  179.             NOTE:  Palette  files  are  binary  (8  bits   per   entry),
  180.             containing 256 red entries, next 256 green entries, then 256
  181.             blue entries. This makes all palette files exactly 768 bytes
  182.             long.   By convention, the names of all palette files end in
  183.             ".pal".  When entering a palette name on the control  panel,
  184.             you may omit ".pal".  Imagetool only recognizes files ending
  185.             in  ".pal"  as  palettes.  For   example,   if   you   enter
  186.             /image/pals/denbd  as  the  palette  name while you may have
  187.             other  image  files  as  denbd*,  Imagetool  will  look  for
  188.             /image/pals/denbd.pal as the palette.
  189.  
  190.             LOAD      To load a palette, enter palette file name at  the
  191.                       text  item  labelled Palette on the control panel,
  192.                       and then select the LOAD option from  the  PALETTE
  193.                       menu.
  194.  
  195.             RESTORE   RESTORE will reload the previous palette used.  In
  196.                       fact,  Imagetool  only keeps track of two palettes
  197.                       most recently loaded.
  198.  
  199.             SHOW      This option display a palette as  a  512x50  color
  200.                       bar  on  the  canvas.  Unless the user indicates a
  201.                       specific location where to  draw  the  color  bar,
  202.                       Imagetool will display it under the image recently
  203.                       loaded. You can pick a position  by  pressing  the
  204.                       left mouse button.
  205.  
  206.             The  following  three  options  CONTOUR,  FIDDLE,  TRANSPOSE
  207.             manipulate  the  CLUT. You can make a color contour palette,
  208.             modify an existing palette with a linear transformation,  or
  209.             take  an inverse of the original palette. The changes to the
  210.             CLUT are seen immediately as you move the mouse.  The option
  211.             SAVE  in  the  PALETTE  menu,  allows  you to store this new
  212.             palette onto disk.
  213.  
  214.             CONTOUR   When selecting CONTOUR from the PALETTE menu,  you
  215.                       are  in  the palette contouring mode. To exit this
  216.                       mode, press the right  mouse  button.  To  make  a
  217.                       contour  palette,  it  is  good  to have a palette
  218.                       color bar or an image  displayed  on  the  canvas.
  219.                       With  the  left  mouse button down, you may pick a
  220.                       color and change it to  white.  Holding  down  the
  221.                       left mouse button and move it across the color bar
  222.                       or the image, you are able to see  the  contouring
  223.                       effect.  While  pressing  the middle mouse button,
  224.                       you can white out a range of colors  as  you  drag
  225.                       the mouse.
  226.  
  227.             FIDDLE    FIDDLE  does  a  linear  transformation   on   the
  228.                       original  palette  while  you are moving the mouse
  229.                       across the canvas. Similar to CONTOUR, you are  in
  230.                       a  fiddling  mode  when  you select FIDDLE option.
  231.                       The right mouse button will get you  out  of  this
  232.                       mode. Keep the left mouse button down while moving
  233.                       the mouse. You can expand or squeeze  the  palette
  234.                       by  moving  the  cursor  up or down vertically, or
  235.                       shift the palette to the left or right  by  moving
  236.                       the  cursor  horizontally, or just move the cursor
  237.                       across the canvas to get a combination of all  the
  238.                       effect.  You  also  can  rotate  a  palette (or an
  239.                       intermediate one) by holding down the middle mouse
  240.                       button;  release  the  button  when  you  want the
  241.                       rotation to stop. As you see  a  new  palette  you
  242.                       want, save it with SAVE option of this menu.
  243.  
  244.             TRANSPOSE This is to  obtain  the  inverse  of  an  original
  245.                       palette.
  246.  
  247.             SAVE      After modifying a palette, you can save  it  (what
  248.                       you  see  on  the canvas) as a new palette file on
  249.                       disk. Select SAVE from  this  menu.  You  will  be
  250.                       first asked whether you want to save a palette. If
  251.                       yes, type in some name string for the new  palette
  252.                       file.  Or  select  CANCEL  button  to skip. If the
  253.                       given file name does not end in ".pal", it will be
  254.                       appended  with  ".pal".   You  will be asked again
  255.                       whether you want to save the current image  as  it
  256.                       looks  on  the  canvas.  If  you answer yes, a new
  257.                       image will be stored with transformed color values
  258.                       such that if this image is loaded back later under
  259.                       the original palette, the one before you  modified
  260.                       it,  the  image  will  look the same as if it were
  261.                       fiddled. Again, give a file name if  you  want  to
  262.                       save the current image, or cancel the operation.
  263.  
  264.             CREATE    This  is  not  supported  in   the   version   1.0
  265.                       Imagetool.
  266.  
  267.  
  268.             The ZOOM Menu
  269.  
  270.             The  options  on   this   menu   provide   image   expansion
  271.             capabilities.
  272.  
  273.             PIXEL     This  option  performs  a  2x2   pixel   expansion
  274.                       (implemented  by pixel replication) on the current
  275.                       image or a selected region. To zoom  a  particular
  276.                       region,  you must first define a region (drawing a
  277.                       box with the  middle  mouse  button)  then  select
  278.                       PIXEL  from the ZOOM menu. You are also able to do
  279.                       multiple ZOOMs by selecting PIXEL more than once.
  280.  
  281.             EXPAND    This also performs the pixel expansion as in PIXEL
  282.                       except  that it takes two expansion factors (for x
  283.                       and y direction) from  the  user.   The  user  may
  284.                       enter  two integer expansion factors when prompted
  285.                       with the factor dialog box.
  286.  
  287.             INTERP    This option zooms (2x2) an  image  or  a  selected
  288.                       region  by  doing  a  linear  interpolation on the
  289.                       pixels. You may also do multiple INTERPs.
  290.  
  291.             UNDO      This  option  will  undo  the  previous  expansion
  292.                       (PIXEL,  EXPAND,  INTERP).  It can be applied more
  293.                       than once until the current image size  equals  to
  294.                       that of the original image before any expansion.
  295.  
  296.                       NOTE: When mixed expansion has been performed, for
  297.                       example,  PIXEL  (2x2),  EXPAND (3x4), PIXEL (2x2)
  298.                       were performed in such order, multiple UNDOs  will
  299.                       not  bring the expanded image back to the original
  300.                       dimension because  only  one  last  expansion  was
  301.                       recorded.
  302.  
  303.  
  304.             The GRAPH Menu
  305.  
  306.             Using the graphing functions of this menu, you may plot line
  307.             graphs, two-dimensional contour graphs, or three-dimensional
  308.             graphs from a color image.   When  you  select  any  of  the
  309.             options  XY,  CONTOUR  and 3-D, a separate graph window will
  310.             appear.  Use the buttons in the graph window to draw, clear,
  311.             print  (from  a  laser  printer), and so on. Select the DONE
  312.             button to close the graph window and exit the graph mode.
  313.  
  314.             XY        Selecting the option XY brings you to a line graph
  315.                       mode.   You  will see a separate graph window with
  316.                       buttons SCALE, DRAW, CLEAR, PRINT, DONE on it.  To
  317.                       plot the data values (not the color index) along a
  318.                       straight line across any part of  an  image  as  a
  319.                       line  graph,  you  first  slice  on  the  image by
  320.                       dragging the left mouse button,  then  select  the
  321.                       DRAW  button  in  the  graph  window. In the graph
  322.                       window, you also select CLEAR to  erase  the  plot
  323.                       canvas,  PRINT to get a hard copy of what you have
  324.                       drawn. PRINT sends a postscript file  to  a  laser
  325.                       printer  whose  name  you must define in Imagetool
  326.                       either using the menu OPTIONS or  entering  it  in
  327.                       the  dialog box appeared when selecting PRINT.  At
  328.                       the text item labelled  Title,  you  may  enter  a
  329.                       subject  title  which  will  be  imposed  onto the
  330.                       graph.
  331.  
  332.                       You may notice that a small scaling info box  pops
  333.                       up  when  you  bring  up  the  XY graph window. It
  334.                       allows you to enter some scaling information:  the
  335.                       X  and  Y  coordinate  limits of your image (xmin,
  336.                       xmax, ymin, ymax), the minimum and maximum  values
  337.                       you  used  when converting the data file to raster
  338.                       file (gmin, gmax);  specifying  either  linear  or
  339.                       logarithmic  as  the  scaling  type.  Click  on OK
  340.                       button to confirm the setting.  Otherwise,  cancel
  341.                       the  box.  Imagetool  will  notify you the current
  342.                       scale setting by printing the values  in  the  tty
  343.                       window.  During  the graph session, you may change
  344.                       the scale setting by selecting the SCALE button.
  345.  
  346.             CONTOUR   To plot a two-dimensional contour  graph  from  an
  347.                       image  or  a  selected  region, you must enter the
  348.                       contour  levels  at  the  item  labelled   Contour
  349.                       levels.  The  contour  levels  are  specified as a
  350.                       sequence of integers ranging from 0  to  255  (the
  351.                       color table index) and separated by a space.
  352.  
  353.             3-D       Similar to the above contour  graphing.  Use  Yaw,
  354.                       Pitch  and  Roll  to adjust the orientation of the
  355.                       3-D object.
  356.  
  357.  
  358.             The FTP Menu
  359.  
  360.             The FTP menu provides  the  capability  to  animate  from  a
  361.             remote  application.   The  basic  idea  is  that  Imagetool
  362.             automatically transfers the output raster files periodically
  363.             from the remote site on which the application is running and
  364.             generating raster files, and then loads the raster  file  to
  365.             the  Imagetool  canvas.  This is implemented as an animation
  366.             loop until the user terminates the loop.
  367.  
  368.             Before you start the animation loop, you  must  establish  a
  369.             FTP  connection  by  selecting CONNECT from the FTP menu and
  370.             typing in the login name and password as usual.
  371.  
  372.             To begin the automatic file transfer, select  the  GET  LOOP
  373.             menu  item.   You  will  first  be  prompted to fill in some
  374.             option values. You  may  specify  the  file  name  increment
  375.             (integer),  the  time  interval  between  two  transfers (in
  376.             seconds), and indicate  whether  you  want  the  transferred
  377.             image expanded before loaded to the canvas.
  378.  
  379.             NOTE: The time it takes to transfer a raster file  from  the
  380.             remote  site  depends on the network traffic at that moment.
  381.             If the interval is set smaller than  the  time  required  to
  382.             complete  a  transfer, you may receive fewer bytes than that
  383.             the image should have. If this is the case,  Imagetool  will
  384.             try  to get the same image again before going on to the next
  385.             one.  If this continues for two or three times,  you  should
  386.             pause  the  loop  by selecting STOP from this menu, increase
  387.             the time interval, and resume the loop by selecting GET LOOP
  388.             again.
  389.  
  390.  
  391.             The HELP Menu
  392.  
  393.             This menu allows you to read help files in a  separate  text
  394.             window  the  while  you  are using Imagetool.  The available
  395.             help   files   at   this   point    are    imagetool_basics,
  396.             imagetool_menus,  imagetool_button,  imagetool_examples, and
  397.             imagetool_errors.
  398.  
  399.             There is also a Bug Report option on this menu. When  it  is
  400.             selected,  a  text  window  will pop up where you  may enter
  401.             your bug report.  After you complete your bug report,  click
  402.             on  the  DELIVER  button  to  send the text to the Imagetool
  403.             author, and the DONE button to close the window.
  404.  
  405.  
  406.             The OPTION Menu
  407.  
  408.             The  user  can   use   this   menu   to   set   up   certain
  409.             options/defaults for use with Imagetool.
  410.  
  411.             Default File   Users may  set  up  some  default  paths  for
  412.                            Imagetool  so  that they do not have to reset
  413.                            these  parameters  each   time   they   start
  414.                            Imagetool.   The first time you run Imagetool
  415.                            (assuming that you do not have a  file  named
  416.                            ".imagetool_defaults"     in     your    home
  417.                            directory), a dialog box will  appear  asking
  418.                            whether  you  need  to  set  up the defaults.
  419.                            Answer yes. Type in the complete  path  names
  420.                            for  the directories that contains your image
  421.                            files,  palette  files,  and  Imagetool  help
  422.                            files.  You  also  have an option to save all
  423.                            the defaults to a file for  later  reference.
  424.                            During  an  Imagetool session, you can change
  425.                            the defaults by selecting the OPTIONS menu.
  426.  
  427.             Default Printer
  428.                            Specify the name of the laser printer for the
  429.                            current Imagetool session.
  430.  
  431.             Reversed Image In general, we assume that a raster image  is
  432.                            (0, 0) oriented at the upper left corner, row
  433.                            by row, from left to right. With the Reversed
  434.                            Image  flag  set,  an  image will be taken as
  435.                            being oriented at the lower left corner.
  436.  
  437.             Dark Background
  438.                            This  sets  Imagetool  window   to   a   dark
  439.                            background.
  440.  
  441.