Up | PolarLine - 27 | IntensityTool - 5 | PointDistance - 26 | ArcialLineFinder - 34 | EdgeFinder - 42 | MultiArcFinder - 48 | PolyLineEdgeFaults - 50 | MultiIntensity - 52 | RadialLineFinder - 36 | Blob2 - 46 | BlobTool - 6

 

  

 
Blob2 - 46

Blob2 is a powerful and advanced blob tool. A blob is a continuous area with the same shading limited by a contour, and possibly a number of internal holes.

Note : Blob2 is replaced by Blob3.

Hole area 1 = H1
Hole area 2 = H2
Blob area = A
Contour area = A+H
1+H2

Based on a set of filtering criteria, the Blob2 tool finds one or more (currently up to 32) blobs (areas within a contour) within the region of interest (ROI).

The following results are found:

  • General statistics (blob count, coverage)

  • Properties of the largest blob

  • Individual properties for the set of qualified blobs

The tool delivers an output (child) reference coordinate system that is the incoming reference system translated to the center of gravity of the largest blob found.


Setup

Reference - Reference system selection

Search Area - the tool's region of interest

  • Vector - list of numbered polygons
  • Content - the points of the selected polygon
  • New - add polygon
  • Delete - remove selected polygon
  • Paste new - creates a new polygon, pastes the polygon from the clipboard and presses apply  - this is the quickes way to create many polygons
  • Highlight selection - highlights the selected polygon in the image
  • Copy - copies the selected polygon to the clipboard
  • Paste - pastes the clipboard to the selected polygon - will overwrite an existing polygon


Advanced

Emphasizing gradients - Activate Sobel-filter to work on a differentiated image

Morphology - Erode (remove) or dilate (add) the found blob area

  • Example : e2d2 - erodes two pixel before dilating 2 pixels

Area Search

  • Minimum threshold - minimum accepted intensity value
  • Maximum threshold - maximum accepted intensity value

- will activate a tool parameter browser.

Note : Minimum and maximum threshold can be linked to a result in another tool - Very often a percentile value from the Intensity Tool

  • Smooth factor - smoothes the contour - used to correct the result contour length

Rotation of child reference

  • Rotate child reference system - tools connected to this tool will reflect the angle of the major blob


Constraints 1

A set of constraints can be specified, limiting the blobs that are found by the tool (result validation). The constraints apply to each blob, and all must be satisfied for a blob to be considered qualified.

Contour area - Area including any holes

Blob area - Area excluding any holes

Number of holes - Separate holes within a blob

Size of hole - A minimum hole area implies that the blob must have a hole; a maximum area does not.

Intensity - used to remove blobs with an average intensity outside the minimum and maximum values


Constraints 2

Circularity - Minimum and maximum circularity limits to accept a blob

Note: A smooth factor of 2 or 3 will normally lead to a better circularity estimate

Axis ratio - Minimum and maximum limit values for axis ratio

Axis ratio is length / width of bounding box.

Angle - Minimum and maximum limit values for angle

Length of bounding box - Minimum and maximum length limits for bounding box

Width of bounding box Minimum and maximum width limits for bounding box


Results

Number

Number of blobs found

Coverage

Total blob area in percent of the ROI-area

Largest area

Largest contour area (hole area included).

Largest blob area

Largest blob area (hole area subtracted).

Total blob area

Total area of all blobs (hole area subtracted).

Intensity

Average light intensity of the blob with largest contour area

Center of gravity

Center of gravity of largest blob given in coordinates

Contour area[n]

Contour area for blob n

Contour length[n]

Contour length for blob n

Form factor[n]

Contour length/Contour area for blob n

Blob area[n]

Area (ex. holes) for blob n

Number of holes[n]

Number of distinct holes inside blob n

Intensity[n]

Average intensity for blob n

Center of gravity[n]

Center, blob n given in coordinates


Visualisation

All blobs

A line following the contour of each blobs

All centers

A separate mark for each blob center of gravity

All holes

A line following the contour of each hole

Center of gravity

A point defining the largest blob’s center of gravity

Error

A cross is shown in the ROI center if no blobs are found

Max contour

The contour of the blob with largest contour area

ROI

Region Of Interest for the measurement

ROIHoles

Excluded areas of the Region Of Interest due to overlapping polygons


ExecuteCmd support
(see also executeCmd)

Command

Parameters

Return values

Comments

Set Object=ROI;Value=<polygon> ok,None Sets the first ROI polygon. See Copy/paste ROIs for details.
Set Object=ROI;Number=<number>;
Value=<polygon>
ok,None Sets the numbered ROI polygon. See Copy/paste ROIs for details.
Add Object=ROI;Value=<polygon> ok,None Adds ROI polygon to the end of the list. See Copy/paste ROIs for details.
Get Object=ROI;Number=<number> ok,<polygon> Gets numbered polygon, as Scorpion polygon (StrArr format).
Get Object=Tuple;Number=<number> ok,<tuple> Gets numbered polygon, as Python tuple
Clear Object=ROI;Number=<number> ok,None Clears numbered polygon (makes empty)
DeleteAll - ok,None Deletes all polygons


Keyboard shortcuts
- More information

Shortcut

Command

Comments

Ctrl-Z Set ROI Sets the selected polygon to points marked in the image. If only a single point is marked, the polygon is moved, centered around the point.
If the tool dialog is not open, the first polygon is set.
Ctrl-1 - Ctrl-0 Set polygon 0-10 Sets the numbered polygon to points marked in the image. If only a single point is marked, the polygon is moved, centered around the point. If a new polygon is defined this way, any missing polygons in between are set as empty.
Ctrl-Shift-1 - Ctrl-Shift-0 Clear polygon 0-10 Clears the numbered polygon (sets empty).
Ctrl-Shift-A Add polygon This is a shortcut to the 'Add polygon' button on the "Setup/Add polygon" page, and is only effective when that page is visible.

 

Scorpion Vision Version XII : Build 646 - Date: 20170225
Scorpion Vision Software® is a registered trademark of Tordivel AS.
Copyright © 2000 - 2017 Tordivel AS.