VI User Manual - 第245页

Tools library Vision 2007 4.10 User Manua l Rev 01 7 - 83 Acircularity The Acircular ity is the deviation of the radius values of the blob fr om the radius of a circle that has an equivalent area. Elongation The Elongati…

100%1 / 412
Tools library
7 - 82 Vision 2007 4.10 User Manual Rev 01
7.14 Blob
7.14.1 Blob tool definition
The Blob tool detects random shapes based on the gray levels in the image. It identifies
groups of pixels that fall into a user defined gray scale range. Several parameters allow
shape-based filtering.
The Blob tool is used to find contrasted objects, when the object shape is not known precisely.
It can find pin tips for backplane or connector inspection, polarity marks, solder defects as pin-
holes, missing or excess solder, or various PCB pollution... It returns presence, X, Y and The-
ta position of the biggest found shape. Blob runs in several steps:
7.14.1.1 Segmentation
This step determines which pixels are object pixels or background pixels. Two types
of segmentations are available:
Fixed thresholding
The division between object
and background pixels is deter-
mined by a gray level value
Relative thresholding
The threshold is computed ac-
cording to the values of all the
pixels in the search area. 2 “tail”
parameters represent the per-
centage of noise-level pixels
that are excluded from the
threshold calculation. The
threshold is a percentage of the
gray levels range without the
tails.
7.14.1.2 Masking
The Blob can apply a mask that will exclude some portions of the segmented image.
The mask is a binary bitmap image. The center of this bitmap is realigned with the
center of the tool’s search area. Pixels of the segmented image covered with the
mask’s black pixels won’t be analyzed.
7.14.1.3 Blob analysis
The tool finds groups of pixels in the segmented and masked image. It returns vari-
ous shape parameters that tend to describe the shape features: Area, Acircularity,
Elongation, Angle.
Area
The area is the number of pixels included in the shape, multiplied by the area of a
single pixel (X pixel size * Y pixel size).
From now on, the blob search area is adapted to pad with angles: a mask is applied
to the search area to simulate the search area rotation. The sidewalk has then to be
set (set to 0 by default by the customers to avoid false defects).
0255Gray levels
N
u
m
b
e
r
o
f
p
i
x
e
l
s
Threshold
Background Object
0255Gra
y
levels
Low tail High tail
N
u
m
b
e
r
o
f
p
i
x
e
ls
Threshold
Background Object
Tools library
Vision 2007 4.10 User Manual Rev 01 7 - 83
Acircularity
The Acircularity is the deviation of the radius values of the blob from the radius of a
circle that has an equivalent area.
Elongation
The Elongation is the ratio of the dispersion along the minor blob axis to the disper-
sion along the major blob axis.
Angle
The blob angle is the angle of its major axis with respect to the horizontal axis.
7.14.1.4 Filtering and sorting
User-defined criteria for each of the above parameters enable filtering the results.
7.14.2 Model description tab
1. On the Model description tab, in the Edit a model window, choose the processing: Blob.
A new
Blob tab appears behind the Model description tab.
2. Click Auto area button to place the model encompassing area exactly on the image.
7.14.3 Blob tab
1.
Use
Realign this processing
(
A
) section
if you want to realign
the position of the tool with anoth-
er one (not available for window
1).
2. In Position & Size search
window (mm)
(B) section, enter
the size and position of the search
window (zone in which the feature
will be searched for).
3.
In
Light level
(
C
)
section, s
elect
the light level you want to use.
4. In Parameters (D) section, en-
ter the Blob tool parameters (see
below
7.12.3.1 Blob parame-
ters
).
5. Click Test (E) button to test the
Blob tool and display the results
(see below
7.12.3.2 Blob test).
The result show in the table (
F).
7.14.3.1 Blob parameters
Thresholding tab
If you need a special
equation to realign, you
can do so using the
Equations button.
A
B
C
D
E
F
Blob
Tools library
7 - 84 Vision 2007 4.10 User Manual Rev 01
Click Thresholding tab
to access the segmenta-
tion step parameters.
1. Select between Fixed
and Proportional (A)
threshold:
Fixed threshold is fast-
er, because the threshold
values do not have to be
computed.
Proportional threshold enables to compensate for linear lighting changes.
2. Define the Threshold (B).
3. Define the Low and High tail (C) parameters (only available when proportional
threshold is active).
4. Click on Binarised Image button (D) to see the result of the thresholing.
Functional parameters tab
Click Functional param-
eters
tab to access the
filtering and sorting pa-
rameters.
1. Select the color (A) of
the blob and background.
2. In Filter (B) section,
define the parameters
enable filtering the re-
sults list by the computed
shape parameters.
If you have several parameters, you can define the most important by increasing its
weight. You can choose:
Ascending, Descending, Enabled or Disabled.
Ascending give the great
score for a blob near the
min.
Descending give a great
score for a blob near the
max.
Threshold units
Gray levels when fixed threshold is active.
Percentage when proportional threshold is active.
When using proportional threshold, the Blob tool will always find a result in the im-
age. Therefore a Blob tool with proportional threshold can hardly be used to test
for presence of a feature in the image - unless criteria as area, acircularity, elon-
gation or angle allow an efficient filtering.
The Max value must be larger than the
Min value.
A
C
B
E
A
B
C
D
E
Area
Min Max
Y0
Y1
Area
Min Max
Y0
Y1
Y0 = Min score
Y1 = Max score
Blob