Basic knowledge
Regional characteristics
1:
Looking at the region feature after the threshold, you can see it through feature detection on the toolbar
Region features are divided into three parts:
1. Basic features: area, center, width and height, upper left and lower right coordinates, elliptical direction of long half-axis and short half-axis, number and area of holes, roughness, connection number, maximum radius, direction, etc.
2. Switching characteristics: radius of outer circle, radius of inner circle, roundness, compactness, length, rectangularity, convexity, eccentricity, bulkiness, direction and length of outer rectangle, etc.
3. Geometric moment characteristics: second-order moment, third-order moment, principal inertial axis, etc.
Region feature selection, using select_shape, is determined to be connected ():
Select_shape (Regions: Selected Regions: Features, operations, Min, Max:)
Role: Select a specific region to refer to Halcon's own routine: select_shape.hdev
Image: Regions: Row, Column, Tolerance, MinSize:)
Function: Region growing method is used to segment images to obtain regions, where MinSize is the minimum area value of a single region, and if it is less than this value, it is filtered out.
Area_center (Regions::: Area, Row, Column)
Function: Calculate area and arbitrary shape of the region center position (the center position is not necessarily on the region)
Two:
Regional joint operations:
1. union 1, union 2 summation
2. Intersection Intersection
3. Differential Differentiation
4. Complement
The following are explanations:
Union 1 (Region: RegionUnion::)
Action: Joint connected region.
Union 2 (Region1, Region2: RegionUnion:)
Role: Merge two regions into one region.
Difference (Region, Sub: RegionDifference::)
Role: Part of Sublast year's Region
Comple (Region: RegionCompletion::)
Function: Computing the complement of Region
The region transformation operation:
1. convex hull
2. outer_circle
3. inner_circle
4. retangle 1
5. retangle 2
6. inner_rectangle1
The following are explanations:
Region transformation operations are mainly used for operators:
Shape_trans (Region: RegionTrans: Type:)
Function: The shape of the transformation region is the six shapes listed above (convexity, circumscribed circle, circumscribed circle, circumscribed rectangle, etc.).
So much for region for the time being.