Prima Homepage
ImaLab
Generating C++ Modules
User Manual
The Command Shell
Running Imalab
Plugin Process
Pixels and Images
Interactive selection
Graphics: plots, profiles
Image file I/O
Image display
Connectivity Analysis
Image Processing(1)
Gaussian operators
Technical Documentation
Creating New Modules
Tutorial
Tutorial Download

[PREV][SUIV]

Running Imalab

Before getting into the details, here are some typical calls of imalab:

imalab
When calling imalab without any argument, then you have to set up your environment using your own commands; not for beginners.

imalab -mpeg formula1.mpg -config x11-config

Imala starts in "step-mode".

Imalab initializes with the indicated mpeg sequence, opens the "display screen", and then waits for keyboard commands: when you type a space (into the screen window), the mpeg sequence will start; typing another space will stop, x will exit. this way imalab behaves as an mpeg reader that you interactively control with a number of keyboard commands typed into the screen window.

imalab -dir ~lux/Redac/Trombi/Ivr01/Ima -screen 11

The image sequence is specified by the -dir parameter: imalab takes the jpeg images in this directory. If it's not jpeg images you have, you may specify -tiff or -ppm (no other images encodings are handled).

imalab -tiff *

Tiff format is specified. The image sequence is composed of all argument files having suffix tif. (If your tiff images have another suffix, you must supply the -suffix parameter).

Interaction language

Imalab indicates on entry which interaction language is active - C-mode or Scheme mode; you may switch at any time using one of the commands:

From C mode to Scheme mode: scheme

From Scheme mode to C mode: (language-switch 'c++)

A Prolog module is ready for use - but someone has to demand it.

Parameters

The following parameters are accepted by the imalab command:

  • -dir name
  • -process name plugin for image processing and display
  • -screen cl cl is a 2-digit number, default is 22 meaning your screen has 2 columns and 2 rows of images.
  • -store n
  • -tiff image format is tiff, implies suffix .tif
  • -ppm implies suffix .ppm
  • -jpeg usually default, implies suffix .jpg
  • -mpeg usually default
  • -load file
  • -ia start in interactive mode
  • -delay val delay to slow down display (default: 0 for mpeg, 200 for files)
  • -gamma val correction for image display
  • -suffix string file name suffix (defaults are: .jpg .tif .ppm)
  • -file name file containing image file names (1 per line)
  • -name n default: empty string
  • -man

Access to the Imalab Command

All commands used with imalab - imalab, ravi, video-demon - can be found in the directory /home/naiad/lux/Soft/bin. If you are just using these, you should add /home/naiad/lux/Soft/bin to your PATH variable, by putting a line like

setenv PATH /home/naiad/lux/Soft/bin':'$PATH

into your .cshrc file.

Image sequence

Your image sequence may be defined in different ways:

-dir argument: files having the correct suffix are filtered from the file list of this directory. The filter verifies suffix and prefix, as given by the -suffix and -name parameters, which default to .jpg and the empty string, respectively. The -name parameter is rarely used.

Explicit file name list given: the given list is filtered with suffix and prefix.

If you give a -dir argument and a file name list, the directory is systematically prefixed to all image file names.