
Chapter 21 Vision Control (Option)
21-67
21.8 Labeling
BLOB (Statement)
Function
Executes labeling.
Format
BLOB <Widow number>, <Coordinate X>, <Coordinate Y>, <Processing
object>, <Binary lower limit>[, <Binary upper limit>[, <Link>[, <Area lower
limit>[, <Sort>]]]]
Explanation
<Window number> Designates the window number (0 to 511).
<Coordinate X> Designates the X coordinate (0 to 511).
<Coordinate Y> Designates the Y coordinate (0 to 479).
<Processing object> Designates the object to obtain with labeling (0 or 1).
0: Black (brightness value < binary lower limit, binary
upper limit < brightness value)
1: White(binary lower limit ≤ brightness value ≤ binary
upper limit)
<Binary lower limit> Designates the lower limit for binarization
(0 to 254 lower limit < upper limit).
<Binary upper limit> Designates the upper limit for binarization
(1 to 255 lower limit < upper limit).
If ignored, 255 is set.
<Link> Designates the condition of the link (0 or 1).
0: Neighbor 4 link (Neighbor pixels at right and left, and top and
bottom are checked.)
1: Neighbor 8 link (Neighbor pixels at slant, as well as right and left,
and top and bottom are checked.)
<Area lower limit> Designates a lower limit of an area value to be ignored in
labeling. (0 to 245760)
<Sort> Designates sorting of numbers obtained with labeling (0 to 2).
0: Obtained order
1: Area value descending
2: Area value ascending
By executing labeling, you can obtain the numbers
and positions of multiple objects.
In the example shown on the left, the labeling
number is 4.
If you use BLOBMEASURE, you can obtain the
indination (direction : main axis angle) and the
peripheral length individually.
Example of labeling
Center of gravity coordinate
Filet dia. width
Filet dia. height
Filet dia. reference point
Comentarios a estos manuales