<< 点击显示目录 >> 主页
mappVision帮助助手 > 机器视觉帮助 > mapp Vision > 用例 > 测量 - 示教和后续测量 测量 - 操作 |
本节概述了视觉功能 "测量 "可能进行的测量操作。参数操作(n)可选择在两个模型之间进行测量操作或确定模型属性。测量结果可以指定为像素数,或者在角度操作中指定为度。
可以使用以下模型类型:
•圆 封闭全圆。
•点:圆的中心点: 圆的中心点。
•边缘:灰度值过渡。(无限长)直线。
根据所使用的模型类型,可以进行以下测量操作:
项 |
边缘 |
说明 |
|
---|---|---|---|
1x |
0 |
0 |
•"长度": 拟合)(部分)圆边的长度。 •"position_x": 圆中心点的 X 坐标。 •"position_y": 从圆心点出发的 Y 坐标。 |
0 |
1x |
0 |
•"position_x": 从圆心点出发的 X 坐标。 •"position_y": 从圆心点出发的 Y 坐标。 |
0 |
0 |
1x |
•长度 拟合)(部分)圆边的长度。 •"orientation(方向)": 拟合)圆边的方向。 •"position_x": 圆中心点的 X 坐标。 •"position_y": 从圆心点出发的 Y 坐标。 |
根据所使用的两种型号,可以进行以下测量操作:
项 |
边缘 |
说明 |
|
---|---|---|---|
2x |
0 |
0 |
•"正交距离": 圆之间的最小距离。 •"distance_cog": 圆中心点之间的距离: 圆的中心点之间的距离。 •"distance_min": 圆之间的最小距离: 圆之间的最小距离。 •"distance_max": 圆之间的最大距离: 圆之间的最大距离。 |
0 |
2x |
0 |
•"正交距离": 圆之间的最小距离。 •"distance_cog": 圆中心点之间的距离: 圆的中心点之间的距离。 |
0 |
0 |
2x |
第一条边 = 参考 = 线段/距离。 第二条边 = 目标 = 直线。 •"正交距离 从边缘(参照物)的几何中心到直线(目标)的正交距离。 •角度 直线之间的角度。较小的角度将作为 result.1 返回 •"distance_cog": 边缘几何中心之间的距离。 •"distance_min:边缘之间的最小距离: 边缘之间的最小距离。 •"distance_max": 边缘之间的最大距离: 边缘之间的最大距离。 •"IntersectionPointPositionX"(交叉点位置 X 两条直线的交点位置 X。 •"IntersectionPointPositionY": 两条直线交点的 Y 位置。 |
1x |
1x |
0 |
•"正交距离": 圆之间的最小距离。 •"distance_cog": 圆中心点之间的距离: 圆的中心点之间的距离。 •"distance_min": 圆之间的最小距离: 圆之间的最小距离。 •"distance_maQx": 圆之间的最大距离: 圆之间的最大距离。 |
1x |
0 |
1x |
•"正交距离": 圆之间的最小距离。 •"distance_cog": 圆中心点之间的距离: 圆的中心点之间的距离。 •"distance_min": 圆之间的最小距离: 圆之间的最小距离。 •"distance_max": 圆之间的最大距离: 圆之间的最大距离。 |
0 |
1x |
1x |
•"正交距离": 圆之间的最小距离。 •"distance_cog": 圆中心点之间的距离: 圆的中心点之间的距离。 •"distance_min": 圆之间的最小距离: 圆之间的最小距离。 •"distance_max": 圆之间的最大距离: 圆之间的最大距离。 |
1角度总是以逆时针方向从参考线计算到目标线。因此只能得到正角度(另请参阅测量常见问题)。 |
|
This section provides an overview of the possible measurement operations of vision function Measurement. Parameter Operation(n) optionally allows measurement operations between two models, or determination of model properties. Measurement results are specified either as the number of pixels or, in the case of angle operations, as degrees.
The following model types are possible:
•Circle: Closed full circle.
•Point: Center point of the circle.
•Edge: Grayscale value transition. (Infinitely long) straight line.
Depending on the type of model used, the following measurement operations are possible:
Item |
Edge |
Description |
|
---|---|---|---|
1x |
0 |
0 |
•"length": Length of the (fitted) (partial) circle edge. •"position_x": Coordinate X from the center point of the circle. •"position_y": Coordinate Y from the center point of the circle. |
0 |
1x |
0 |
•"position_x": Coordinate X from the center point of the circle. •"position_y": Coordinate Y from the center point of the circle. |
0 |
0 |
1x |
•"length": Length of the (fitted) (partial) circle edge. •"orientation": Orientation of the (fitted) edge. •"position_x": Coordinate X from the center point of the circle. •"position_y": Coordinate Y from the center point of the circle. |
Depending on the two types of models used, the following measurement operations are possible:
Item |
Edge |
Description |
|
---|---|---|---|
2x |
0 |
0 |
•"orthogonal_distance": Minimum distance between circles. •"distance_cog": Distance between center points of circles. •"distance_min": Minimum distance between circles. •"distance_max": Maximum distance between circles. |
0 |
2x |
0 |
•"orthogonal_distance": Minimum distance between circles. •"distance_cog": Distance between center points of circles. |
0 |
0 |
2x |
First edge = Reference = Line segment / Distance. Second edge = Target = Straight line. •"orthogonal_distance": Distance from the geometric center of the edge (reference) orthogonal to the straight line (target). •"angle": Angle between straight lines. The smaller angle is returned as result.1 •"distance_cog": Distance between the geometric center of edges. •"distance_min": Minimum distance between edges. •"distance_max": Maximum distance between edges. •"IntersectionPointPositionX": Position X of the intersection of two straight lines. •"IntersectionPointPositionY": Position Y of the intersection of two straight lines.. |
1x |
1x |
0 |
•"orthogonal_distance": Minimum distance between circles. •"distance_cog": Distance between center points of circles. •"distance_min": Minimum distance between circles. •"distance_max": Maximum distance between circles. |
1x |
0 |
1x |
•"orthogonal_distance": Minimum distance between circles. •"distance_cog": Distance between center points of circles. •"distance_min": Minimum distance between circles. •"distance_max": Maximum distance between circles. |
0 |
1x |
1x |
•"orthogonal_distance": Minimum distance between circles. •"distance_cog": Distance between center points of circles. •"distance_min": Minimum distance between circles. •"distance_max": Maximum distance between circles. |
1The angle is always calculated from the reference line to the target line in the counterclockwise direction. This therefore results in positive angles only (see also Measurement FAQ). |
|