LUCIA Forensic 5.30 UsersGuide
LUCIA Forensic 5.30 UsersGuide
30
User’s Guide
Laboratory Imaging
Windows is a trademark of Microsoft Corporation.
No part of this manual may be reproduced or transmitted except with the written
permission of Laboratory Imaging, Ltd.
Information within this manual is subject to change without notice. Changes, tech-
nical inaccuracies and typographical errors will be corrected in subsequent editions
of this manual.
LUCIA Installation 2
LUCIA Screen 8
Layout Manager 12
Organizer 15
Cameras 21
LUCIA Document Structure 23
Comparisons 26
Measurement 31
Histogram and Look Up Tables 33
Binary Editor 37
Mathematical Morphology Basics 41
Modifying Main Toolbar 46
Command Line Options 48
Key Shortcuts 50
1
LUCIA Installation
Quick Start
2
Step 1
Define the folder where the LUCIA software should be installed. We recommend to use the
predefined directory. If you want to change the directory, press the Browse button and select
a directory of your choice, otherwise click Next .
3
Step 2
4
Step 3
If your licence contains some additional modules besides the LUCIA base software, please select
them in this window.
Note:
Any module selected will be installed along with LUCIA automatically. However, you might not be
licensed to use it. The module will run after you get a corresponding code registered in your HASP
key.
5
Step 4
The Setup creates the LUCIA program group with the following items: HASP key information,
LUCIA shortcut, Modify Installation (for adding hardware drivers, modules, etc.), and the Uninstall
procedure. A shortcut is created on the desktop. These changes affect all user profiles of your
local Windows system.
Note:
Clicking the Uninstall command deletes all installed files from disk, and removes the LUCIA
program group from Windows Start menu as well as the desktop icon.
6
Additional Module/Camera Installation
You may need to install a camera driver or additional module after the LUCIA main system
installation.
The HASP key contains information about the SW licence and allows users to run the
corresponding software. Please connect the USB HASP after LUCIA installation. The utility called
"HASPinfo" (Help menu) is installed to the LUCIA directory. It enables the user to view
information about the actual software licence.
7
LUCIA Screen
8
Left tool bar
Focus Mode displays the live image in reduced resolution with high frame rate.
Undo button.
Redo button.
9
Full Test shortcut.
Preview shortcut.
Probe shortcut.
Objectives shortcut.
LUTs shortcut.
10
Controls tool bar
Status bar
The status bar at the bottom shows the following information (from left to right): Camera frame
rate, exposure time, focus indication (the higher number the better), coordinates of mouse
position and the corresponding pixel values, image type, image bit depth, image size in pixels.
11
Layout Manager
There can be a number of control windows (Camera Settings, Measurement, Histogram, LUTs,
etc.) displayed within the application window in several different ways, floating., docked inside a
docking pane, in tab or caption style..
Go to the View>Docking Panes submenu and select the pane you would like to display.
The docking pane appears, either empty or with some window(s) docked.
Repeat this task to display more panes.
The same submenu can be also displayed by right-clicking into the empty application screen.
If you would like to close the pane completely, minimize it and press the cross button, or you can
right click the pane and unselect the Docking View option.
12
To shrink/expand docking panes
Having more docking panes opened, a situation
where there is not enough room for the control
windows can occur. In that case, the Shrink and
Expand commands shall be used.
Control windows
The following control windows can be displayed within the application screen. They can be
floating, or docked inside the horizontal or vertical docking panes:
Camera Settings
Histogram
Image Manager
Light Settings
LUTs
Measurement
Objectives
Panning Window
13
To display a control window
Go to the View>Controls
submenu and select the desired
control window.
The control window appears
floating on the screen.
To dock (and undock) it, double click its caption.
It is also possible to display a control window docked. Right click inside a docking pane and select
the one of your choice. If the window is already opened somewhere (e.g. in the opposite pane or
floating), it closes and moves to the new destination.
Click the "cross" button on the right side of the active window caption.
If the window is docked, you can also right click its caption and uncheck the appropriate
window.
The control window closes.
Tab Style
Caption Style
14
Organizer
Apart from the main application mode used for capturing and image analysis, LUCIA provides a
special Organizer mode.
Organizer was designed to ease the work with image files and
databases. Clicking the Organizer button located in the upper
right corner of the LUCIA application window or pressing F10
activates Organizer.
The screen is primarily divided into two identical panes. Each
pane can be switched into two modes: the Files mode and the
Database mode. To switch from one pane to the other one use
"Next Pane" command from the View menu. To copy files from
one pane to the other one simply drag selected images to the
other pane.
This button switches the pane to show a directory tree and images from the selected
folder (and its subfolders, when selected - see below). It is called the Files view .
This button switches the pane to show the database structure and lists images from
the currently selected database table. This is called the Database view .
15
This button toggles the display of the directory tree. You can switch it off to get additional
space to display images.
In this combo box it is possible to set the file type to be displayed.
You can select only a particular extension or show all files.
If this check-box is selected all images from the included subfolders are shown.
This button toggles display of the database navigation and detailed information about the
selected image. You can switch it off to get additional space to display images.
This combo-box selects the database table and also indicates the current table.
Image filter
Both views (File and Database) have an option to use filters . It enables you to display only
such images, that match the criteria given.
16
Pressing this button invokes the filter setup dialog box.
Basic mode
This mode enables you to view files that match one defined condition.
Advanced mode
This mode enables you to define two conditions with a relationship defined between them. Either
select OR to display files with the properties matching at least one given condition, or select
AND to display files the properties of which match both conditions at once.
First, select the field, where LUCIA should search for a given expression. When using a filter in
the Files view, there are fields from file properties listed. In the Database view, the listbox shows
the names of fields from the currently selected database table.
If a selected field is of a numerical type (e.g. Size, Calibration, File date etc.) you can specify,
whether you want to find the exact value or a value in a given range (both displayed in the
picture above). This is selected by the Condition type radio button.
17
Start - If the entered string is found at the beginning of a field, it is displayed by filter.
E.g if set is entered, fields containing set , set ing set up are selected.
All letter strings - It is possible to search for more expressions. These should be entered
separated by commas. If you want to enter an expression with a space, insert it into quotes.
If this option is selected, only records in whose fields all of those expressions (anywhere)
appear are selected.
Any letter string - This option is for entering multiple expressions as above, but this time
every field with an occurrence of at least one from the given expressions is matched.
18
There is a possibility to rotate images which have wrong orientation. It doesn't affect just the
display, but changes the underlying image data too.
Sorting of images
To adjust the order of displayed images, right click anywhere in the pane. A context menu will
appear. Move to the Sort by command - the submenu with several possible selectable criteria
will appear. If the sorting is already active, the icon is displayed on the left side of the selected
sorting criteria (images are sorted by their filenames).
Grouping of images
To better arrange the view of images one can use the grouping of images. Drag the column name
bar to the grouping bar (right above the column name bars). All files with matching field values of
that column will be grouped together. This can be undone by dragging the column caption back.
See the example Files View picture above (the Dimensions column is grouped).
19
Adjusting the look of Organizer
The pane size is adjustable. To resize it move the mouse cursor to the dividing in the middle. The
cursor becomes an arrow with two tips. Press the mouse button and move it to the new position.
Resizes the pane to its maximal/minimal size (one pane is then displayed on the whole
screen).
20
Cameras
This chapter is dedicated particularly to users running the active version of LUCIA - equiped with
a camera. Let's assume the camera works properly, is connected to the system with proper
system drivers installed and running (if required by camera).
21
Live formats
A format is a set of attributes of a video signal e.g.: resolution, bit depth, frame rate etc. Live
signal is a stream of image data, coming to your computer from the camera in real time. LUCIA
provides two different modes: Fast (Focus) and Quality , each serving a different purpose.
The format of both modes can be set in the Camera Settings dialog box.
This button displays the live camera signal. It produces pictures in high resolution, but the
frame-rate is low. This mode sets the gain as low as possible and extends the exposure time.
This tool bar button runs the Fast (Foc) live mode. It is optimized to give as many frames
per second as possible in low resolution. This mode increases gain and uses short exposure
times.
22
LUCIA Document Structure
Image Layers
Each LUCIA document can consist of the following image layers, serving different purposes:
Annotation layer -
In this layer, graphical
objects and texts can be
stored in a vector
format. The results of
interactive and
automatic object
measurements, arbitrary
text notes and other
annotations are stored
there.
Binary layer - Pixels
in this layer can be
found in two states only
(i.e. Black/White). A
binary image is usually
result of thresholding. It
is used mainly for
performing automatic
measurements of the
thresholded objects.
Color layer -
Contains image data.
When you open an
image from disk, it is
loaded to this layer. It can handle images with the depth of up to 16 bits per color component.
The dimensions of this layer determine the view of the other layers.
When saving an image, only the JPEG2000 file format can handle all image layers and is capable
of saving them. The other image formats will save the content of the color layer only.
23
Using the Annotation Layer
It is possible to insert text notes, and some shapes to the annotation layer. All the objects can be
modified later. See the following example:
Apply the same workflow when inserting text notes or a scale via the Edit > Insert Text and
Edit > Insert Scale commands.
All annotations are placed in one image layer. This layer can be displayed/hidden by clicking
the Annotation layer button or by pressing the A key. All annotations may be deleted by
invoking the Clear Annotations (W) command from the context menu that appears
when you right click the button.
Saving annotations
The annotation layer can be saved to the JPEG2000 file format when you select the Save
Annotations checkbox in the Save As dialog window. Other image formats are not capable of
storing the layer so you are just allowed to select whether to Burn Annotations straight to
image data or not.
24
Using the Binary Layer
The Binary Layer (Binary Mask) can be created by thresholding the current image or drawn
directly using the Binary Editor . There is only one Binary Mask for all opened documents and
has various aims of usage. A comparison Region Of Interest can be created via the Compare >
Region of Interest > Binary Mask -> ROI Mask command, or contours of the binary image may be
used as a comparison method:
25
Comparisons
Comparison types
The Evidence and Test images can be compared using several different comparison modes. When
comparing, the position and rotation angle of the image that is active for processing can be
adjusted using the actions shortcut keys . Check the following list:
Preview comparison
The Evidence and Test images are displayed next to each other. All shift and rotation
transformations are ignored. The images cannot be moved.
Vertical comparison
The screeen gets divided into halves. The left half contains the Evidence image, the Test image is
on the right side.
The virtual splitting line is placed in the middle of the screen by default. It can be moved by
mouse or by clicking the arrow buttons on the comparisons tool bar. Double click the line to reset
its position.
26
Horizontal comparison
Equals the vertical comparison, but the splitting line is horizontal.
Transparency comparison
This command switches to a transparency comparison mode. The Test image is overlapped by the
transparent Evidence image. The transparency level may be set in the comparison options
dialog window.
Use the "Ctrl+Up" and "Ctrl+Down" keys of the Comparison tool bar to increase and decrease
image transparency. Mouse wheel may also be used.
Interlaced comparison
This command activates an interlaced comparison mode. Each image is displayed as a horizontal
grating so that 1 pixel lines of the two images alternate each other.
27
Use the "Ctrl+Up" and "Ctrl+Down" keys of the Comparison tool bar to increase and decrease the
tolerance. Mouse wheel may also be used.
Difference comparison
It creates a negative of one of the images and displays it transparently.
Chopper comparison
The two images are alternated. The frequency of the alterations can be set in the comparison
options or increased/decreased by mouse wheel.
Minimum comparison
The two images are compared and only the pixels with lower values are displayed.
28
Maximum comparison
The two images are compared and only the pixels with greater values are displayed.
Rectangle ROI
Mask ROI
The default resizable rectangular mode can be used, or any shape of ROI can be created from the
current Binary Mask (the Mask ROI mode is not available unless the ROI Mask is created). Click
the Use Compare ROI button of the Comparison tool bar to activate the current ROI. The
nearby button can Show/Hide ROI Border .
Press the "Full Test" button of the Comparison tool bar. Open the first image by invoking the
29
Open command (File>Open).
Press the "Full Evidence" button from the Comparison tool bar. Open the second image by
invoking the Open command.
Start comparing by selecting any of the comparison modes.
This button swaps the preference of processings and adjustments performed on the
Evidence and the Test images. The currently preferred window is higlighted on the
button (left/red for Evidence, right/blue for Test). Whenever some processing or e.g.
rotation is performed, it affects the preferred window.
There are also menu commands corresponding to the buttons described above: Compare >
Switch Live Activity (F5) , Compare > Switch Processing Activity (F8)
Comparison results
When you are finished with comparing and would like to save the scene to a file, just invoke the
File > Save As command. Or, you can click the Accept Displayed Image button of the
comparison tool bar and the whole scene will be copied to the first free Reference space of the
Image Manager .
30
Measurement
Measurement is an advanced and complex image analysis technique. It starts with calibration of
the LUCIA system which is followed by a quantitative evaluation of the image. Image analysis is
finalized with data examination and presentation.
Calibration
Calibration is of a crucial importance for the measurement. It assigns real sizes to objects, so
they can be compared to each other. A correct calibration has to be made before the
measurement begins.
Rough Measurement
Quick and approximate measurements can be performed with the graticules. They behave
like adjustable floating rulers. The user can simply align it with the measured object and
read the distance (e.g. the diameter). To activate a graticule, press the Graticules button
placed in the upper-right corner of the document window. The type of the graticule ruler is
indicated by a picture on this button. The types are: Rectangular, Circle, Cross, Simple Cross,
Vertical Ruler, and Horizontal Ruler.
To change the graticule type, click on the graticules button with the
right mouse button and select the appropriate item from the context
menu. The command Move Graticules to Center aligns the center of the
ruler with the current center of screen. The last command - Graticules
properties - displays the following dialog box:
31
Interactive measurement
The interactive measurement procedure means that the user measures directly on the screen and
gets precise outcome in selected units. The measurement is performed by drawing e.g. two
parallel lines, aligned with borders of the measured object. This is the way of defining the
boundaries of the object in the image. The real size of the object is then counted using calibration
constant.
The interactive measurement can be performed on both color and binary images. First, select the
feature you want to measure. You can choose from: Taxonomy, Counts, Length, Semiaxes, Area,
Angle or Profile. The selection is done by picking one of those commands from the Measurement
menu. For example, to measure the distance between two objects in the image, select the Length
command and the following dialog box appears:
The buttons in the upper part of the window represent different measuring tools. Detailed info
about any of measuring tool can be found in the Command Reference section of the help. The
following example illustrates how to measure the size of a crystal:
Select the interactive tool Horizontal parallel lines. Place the
first line to its position by clicking into the image. Hold the
left mouse button during positioning, after you release it,
the line is positioned. Repeat it for the second line. When
finished, an arrow is drawn between those lines, joined by
the value of the measurement. A record with the
measurement type and measured value is added to the
table in the Length dialog box (pictured above).
32
Histogram and Look Up Tables
Histogram Window
Histogram is a graphic representation of number of pixels (Y axis) in the image versus their pixel
values (X axis). The pixel values run from 0 displayed as black to 255 - 65535 (depending on the
image bit depth) displayed as white. In case of grayscale images a vertical bar is plotted for each
pixel value showing the number of pixels in the image with that value. Considering color images,
such graph is displayed for every color component.
The picture above shows a standalone histogram window. When this window is docked, it shows
only the most significant information to spare space.
Histogram controls
This button switches the histogram view to a mode with three separate graphs, one
for each color component.
This button switches the histogram view to a mode where all colors and intensity
curves are displayed in one graph(see the picture).
Normally, the histogram shows data of the original image. If the LUTs button is activated, the
histogram displays data as if LUTs were applied.
33
LUTs
A look-up table represents a useful tool for color modifications. It takes a value, maps it to a
location in a table, and replaces the incoming value with the contents of the table entry.
The main part of LUTs window is occupied by a histogram view. There are 3 separate curves for
each RGB component, and one gray filled curve for the whole image. You can adjust the
histogram view by moving the slider on the left part of the window.
The black and white triangular sliders define threshold. All the pixels with values lower than the
black slider indicates (left of the slider) will be displayed as pure black. Everything to the right of
the white slider (all pixels with higher values) will be displayed as white. The remaining color
shades will be composed of the pixels with values between the two sliders with defineable gamma
parameter. Gamma is adjustable by moving the gray slider.
This button extends the sliders and displays the histogram as if LUTs was applied. The
range of pixel values currently displayed becomes indicated in the top right corner.
Three color bars with sliders (displayed underneath the histogram) are representing RGB
components. The slider movement affects the brightness of each component.
Auto scale
The auto scale mode automatically sets the white slider and gamma parameters to get the
best image view (what is "best" is determined by a universal algorithm, that may differ
from your needs). If you select the Use Black Level parameter from the pop-up menu,
the black slider will be affected too.
It is possible to apply the Auto scale procedure only once by pressing the button, or to run
it permamently (on the live image) by clicking the Keep Auto Scale button. When you
34
turn the Keep Auto Scale off, the settings remain as if the Auto Scale button was pressed once.
If you want to discard all LUTs settings, press the red cross button, located next to the Auto
scale button.
Settings
Press the arrow next to the Auto Scale button, a pop-up menu will appear. Invoke the Settings
command.
Quantile (0-10%) - this value determines how many of all pixels of the picture are left
outside the sliders when LUT is applied.
Tolerance (0-10%) - if the threshold decreases within the set Tolerance, LUT remains
unchanged and is not re-counted. When the change exceeds the Tolerance, LUT is recounted.
This reduces number of LUT calculations when the camera produces picture noise.
AWB
AWB (Auto White Balance) mode adjusts the image to get the color neutral white. Similarly as
above, it can be used once, or permanently on the live image by clicking into the Keep Auto
White Balance checkbox left of the AWB button. When you uncheck the box, the settings
remains as if the AWB button was pressed once.
If you know which undertone your white has, you can select this color by the color picker that
appears after pressing the ... button on the right of the AWB button. And again, all changes are
discarded using the red cross button.
Press this button to apply the LUTs settings to the color image data. Until you press this
button, no changes are made to the image data.
35
LUTs on Monochromatic images
All things mentioned above are also valid for monochromatic images. When adjusting a
monochromatic image, you don't have AWB function available and the whole image is controled
using only one bar with sliders. On the other hand, you can set more modes of displaying,
including colorizing the image using predefined color schemes.
This pop-up menu is used for pickng the mode of mapping. You can select from Contrast or
Window modes. When Contrast is selected, all pixels with values higher than the white
slider will be set to white. But when Window is active all pixels with value higher than the
white slider will be set back to black.
This button indicates the selected color table and displays this pop-up menu. There you can select
the color scheme, in which you want to display your image. Try a few of them to see which
highlights most of the details you want to see.
36
Binary Editor
The binary layer, as a result of thresholding, can be modified by hand using the binary layer
editor. It is a built-in application providing various drawing tools and morphology commands. Go
for the Binary Editor command in the Binary menu or press the Tab key. New controls
appear on main application toolbars:
Clears the binary image (fills the entire image with the "background" color). <R>
Temporarily saves the current binary image. It can be loaded anytime before the binary
editor is closed by the Load button. <S>
Displays this help page.
The other buttons of the vertical tool bar are simplified versions of mathematical
morphology functions. Please see the Mathematical Morphology Basics chapter for more
details.
Dilate
Erode
Close
Open
Separate Objects
Clean
Fill Holes
37
Make sure you are in the right drawing mode (drawing background/foreground)
Any object that has not been completed yet can be canceled by pressing Esc .
The polygon-like shapes are drawn by clicks of the left mouse button. The right button
finishes the shape.
The auto-drawing tools (threshold, auto detect) have a changeable parameter. It can be
modified by +/- keys or by mouse wheel.
The scene can be magnified by the UP/DOWN arrows when mouse wheel serves another
purposes.
The right mouse button drags the image when magnified.
A line width can be set in the upper left corner.
Hints are displayed below the horizontal tool bar.
Drawing tools
Switches between the foreground and the background editing mode. <Ctrl+SPACE>
The Hand tool. Serves for moving the image when magnified. <Ctrl+W>
Bezier hollow tool. The object is defined by placing points on its perimeter. The lines
connecting those points can vary from straight lines to bezier curves. (Use +,- keys to
adjust them). To finish creation press the right mouse button. <Ctrl+F11>
Bezier fill tool. It equals the Bezier hollow tool, but the resulting object is filled.
<Ctrl+F12>
Draws a filled polygon. While holding the left mouse button down, you are in the free hand
mode. When you release it, each click defines a corner of the polygon. The polygon is
enclosed and filled by pressing the right mouse button. <F4>
Draws a polygon. It equals the Filled polygon tool, but the resulting object is not filled.
<F3>
Draws a filled circle. Click to determine the center and define the perimeter holding the left
mouse button down. <F8>
Draws a circle. Click to determine the center and define the perimeter holding the left
mouse button down. <F7>
Draws a filled rectangle. <F10>
'Draws a filled moveable circle/ellipse. If you grab the ellipse near the center, you can
move it. If you grab it near the border, the nearest semi-axis is being modified. When
holding down either the SHIFT or the CTRL key, both semi-axes change equally (forming a
circle). <F12>
Draws an ellipse. <F12>
38
Drawing by hand. <F1>
The Auto Detect filled tool. Detect hollows using threshold techniques. Click to the image
to place the probe, the detected area is drawn. You can adjust the thresholding range by
using the mouse wheel or by pressing the +, - keys. <Ctrl+B>
Threshold tool. Click into the image to place the probe (or more of them) to define the
initial color level for thresholding. Pres +,- keys or use the mouse wheel to change the
thresholding range. <J>
Fill an enclosed shape. <F6>
Commands tool. Displays a pop up menu offering user some additional commands:
Commands
The Auto Detect hollow tool. Detect hollows using threshold techniques. Click to the image
to place the probe, the hollow is drawn. You can adjust the thresholding range by using the
mouse button or by pressing the +, - keys.
Draws rectangularly crossed lines.
Draws a rose. Click to the image to define the center, than drag the mouse to set the
length of it's arms.
Places a marker to the image. Simply click into image...
The Connect tool. Draws a line(s) from the point you've clicked on, to the nearest
object(s).
Displays a grid. Visible only when using magnification 400% and higher.
Hides the binary image and displays the just the color image.
Inverts the binary image. Foreground becomes background and vice versa.
39
The last two buttons perform simplified versions of mathematical morphology functions. Please
see the Mathematical Morphology Basics chapter for more details.
Smooth
Contour
40
Mathematical Morphology Basics
The binary image as a result of thresholding often needs to be modified before any
measurements are performed. Edges of the objects can be smoothed, holes in the objects filled
etc. by using the mathematical morphology commands. “Image Analysis and Mathematical
Morphology” by J. Serra (Academic Press, London, 1982) is used as a reference publication for
the following overview.
Basic processes of mathematical morphology are: erosion, dilation, open, close and homotopic
transformations.
Erosion - After performing erosion, the objects are shrunk. It means that the inner layer
of objects is subtracted. If an object or a narrow cape is thinner than the thickness of the
inner layer they disappear from the image.
Dilation - After dilation the objects are enlarged. That means the outer layer of the
objects is added. If the distance between two objects is shorter than the thickness of two
layers these objects are connected together. If a hole is smaller than the thickness of two
layers, it disappears.
Open - In this case erosion is followed by dilation so the size of the objects is not
significantly affected. Contours are smoothed, small objects are suppressed and gently
connected, particles disconnected.
Close - In this case dilation is followed by erosion so the size of objects is not
significantly affected. Contours are smoothed, small holes and small depressions are
suppressed. Close objects may be connected together.
There are other very important transformations of binary images implemented in LUCIA binary
editor:
Clean - This transformation is also called geodesic opening. First, the image is eroded
and small objects disappear. Then, the remaining eroded objects are reconstructed to their
original size and shape. The advantage of this algorithm is that small objects disappear but
the rest of the image is not affected.
Fill Holes - Fills the holes inside the image. For example, you can detect only boundaries
of the objects because objects have rich inner structure with intensities typical for
background and boundaries. After filling the holes, boundaries are transformed to closed
areas.
Contour - This transformation converts an object into its contours.
Morpho separate objects This transformation detects standalone objects that are
connected together and detaches them.
Note:
Applying the above mentioned transformations in computerized image analysis brings some
limitations due to digitization. In digitized images, information is known only at grid verticals and
41
limiting cut-out of real scene is available. This is the reason why the most frequent terms in
binary image processing are: structuring elements, connectivity, grids, problem with border
areas.
When speaking about binary image processing, binary image is considered as a set of pixels
where values 1 represent objects (white areas) and values 0 represent background (black areas).
LUCIA system uses a square grid. In this type of grid there are two possibilities of connectivity,
the 8-connectivity or the 4-connectivity. The difference between the 8 and 4 connectivities is
shown in the example picture. If the 8-connectivity is considered, there is one object in the
picture, if the 4-connectivity is considered, there are two single point objects in the picture.
LUCIA works with the 8-connectivity model, so all points neighboring by the corner belong to one
object.
Implementation in LUCIA
Erosion, dilation, opening and closing are defined by Matrix and Number of iterations. Matrix is
also known as the kernel or structuring element. There are the following structuring elements
used in LUCIA:
The bright pixel in the center or near the center defines the central point of a structuring
element.
Erosion
Lets assume the 1 and 0 values represent object(1) and background(0) pixels. You can imagine
an erosion by a Matrix as the following algorithm:
Move the bright pixel of the Matrix to every point of the image. Each time, look at the
neighborhood and make the following decision:
If there are object(1) pixels in all the positions of the Matrix, set the bright pixel to
object(1).
If there is at least one background(0) pixel in the neighborhood, set the bright pixel to
background(0).
The second parameter, the Number of iterations defines how many times the erosion is to be
applied.
Dilation
You can imagine a dilation by a Matrix as the following algorithm:
Move the bright pixel of the Matrix to every point of the image. Each time, look at the
neighborhood and make the following decision:
42
If there is at least one object(1) pixel in any position of the Matrix, set the bright pixel to
object(1).
If there are background(0) pixels in all the positions of the Matrix, set the bright pixel to
background(0).
Note:
If the bright point is not in the center (the first and the third example picture above), then
applying erosions or dilations by odd number of iterations causes image to shift by 1 pixel.
Normally the total image shift would be given by the Number of Iterations (in pixels). LUCIA
eliminates this shift: it changes the position of the bright point 1 pixel down-rightwards within the
structuring element for even operations. For opening and closing it is possible to eliminate this
shift totally. However, if you run the erode or dilate processes again and again (e.g. calling the
Repeat Last command) using the Matrix with even dimensions and odd number of iterations, then
the shift is significant.
Examples
43
CloseHoles(); SmoothBinary();
44
OpenBinary(2,4); MorphoSeparateObjects(4,1);
Source Contour
45
Modifying Main Toolbar
LUCIA enables the adjustment of the user toolbar . You can define your own buttons to
perform various actions like invoking commands from menus, running application functions. To
adjust existing toolbar, right double-click any button on the vertical user toolbar on the
bottom-left side of the screen. Or, go for the menu command "View > Customize Toolbar >
Setup". The following dialog box will appear:
Lets say that we very often use the Close Binary function. It is useful to add the button with
the shortcut to this function to the user toolbar . First invoke the Modify Toolbar window.
Press the Add button, and choose Command from the context menu:
The new command (Command0) is added to the Current toolbar list. Now, attach the LUCIA
command to it. In the Button properties area click the Paste Command button. Choose a
command from the list (_CloseBinary() in our case). It appears in the Command edit-box. It is
possible to create a sequence of commands, by using the Paste Command button repeatedly.
46
If you are not satisfied with the default icon given, you can change it by pressing the Change
button (shown on the picture bellow). A dialog window for selecting the icon appears. We choose
the icon that is used in Binary editor for the Close function. You can select LUCIA icons by
default or load some from other files containing icons (typically *.ico or *.dll files). You can define
another icon to be used for your command in a disabled state.
It is handy to define a tooltip (a text that appears when placing a mouse cursor over the icon) for
your command. Simply write the text into the Tooltip box. You can change the position of the
command in toolbar by using the arrows located under the Add and Remove buttons.
You can save your toolbar for further use by clicking the Save button. A dialog box appears.
You just define the name and press OK . You can delete an already saved toolbar by pressing
the Remove button. To load your saved toolbar use the Load button. A dialog window with
all saved toolbars plus one default appears. Select the toolbar you want and press OK .
47
Command Line Options
When starting LUCIA from the command line (or when editing the desktop shortcut) you may
take advantage of using the following parameters:
Switches:
-? [no parameters]
Displays a help screen with the following content.
-f "Filename"
The application tries to open an image pointed to by Filename.
-g "Grabber name"
Grabber of the specified Grabber name will be used. No dialog box is shown. As the name of the
grabber, you can use the name which appears in the startup driver selection dialog, or the name
of the driver class.
-i "Config Name"
Application will use the specified Config Name to load from and save to its configuration.
-l "Language"
Application will run in a specified language.
48
-p [Command]
The application window will be placed according to the parameters:
When [Command] is:
-q [no parameters]
A new instance is created.
49
Key Shortcuts
C Contour
Ctrl+G Invert
F7 Length...
D Radius...
E Area...
Ctrl+F7 Angle...
Ctrl+A Options...
Camera Operations
+ Live
- Capture
Comparisons
F6 Full "Evidence"
F6 Full "Test"
50
P Preview
V Vertical
H Horizontal
T Transparency (50%)
I Interlaced
Ctrl+D Difference
O Chopper
Ctrl+I Minimum
Ctrl+M Maximum
S Start Chopper
B ROI Border
Ctrl+Alt+H Histogram
M Image Manager
Ctrl+Alt+L LUTs
J Objectives
Ctrl+Alt+Left Left
Ctrl+Alt+Up Top
51
Ctrl+Alt+Down Bottom
Ctrl+Alt+Right Right
File Operations
Ctrl+F12 Open...
F2 Open Previous
F3 Open Next
Ctrl+P Print...
Alt+F4 Exit...
Ctrl+Shift+Backspace Undo
Ctrl+Alt+Backspace Redo
Ctrl+C Copy
Shift+L Paste...
Q Accepted Region...
Image Movements
Shift+Up, Up Shift Up
52
Ctrl + Middle Mouse Button Define Center of Rotation...
Alt+Up Scroll Up
Image Processing
Shift+N LUTs...
Shift+P Sharpen
] Rotate Right
[ Rotate Left
X Flip Horizontally
Y Flip Vertically
Shift+G Negative
Layers Visibility
Ctrl+Alt+P, / Probe
A Annotations
* Graticules
53
Reference Images Operations
View
L LUTs On/Off
Zooming
` Fit to Screen
1 1:1 Zoom
54
55