结构 Vision Data Access functions

本主题列出了从数据结构中获取值作为输入的 Vision Data Access functions

注意:以下函数的 Structure 参数必须是对 AnnulusCircle交叉固定固定Line区域 函数返回的数据结构的引用。描述中指明了每种函数的有效结构。
函数 说明

GetAngle(结构, [索引])

从索引的 Cross、Fixture 或 Region 数据结构返回角度值。

GetCurve(Structure, [Index])

从索引 Region 结构返回一个以顺时针度数为单位的曲率角值。

GetHeight(结构, [索引])

从索引的 Cross 或 Region 结构返回高度值。

GetNPoints(Structure, [Index])

返回结构的点数。

GetNSubregions(CompositeRegion, [Index])

返回组合区域的子区域数。

GetOperation(CompositeRegion, [Index])

返回组合区域的指定子区域的操作。

GetRadius(Structure, Index)

返回索引 Annulus 或 Circle 结构的半径值。

GetSegmentArea(Mask, Index)

返回 Mask 结构中索引段的区域,如果未指定索引,则返回段 0。

GetSegmentX(Mask, Index)

从 Mask 结构返回索引段的 X 坐标,如果未指定索引,则返回段 0。

GetSegmentY(Mask, Index)

返回 Mask 结构中索引段的 Y 坐标,如果未指定索引,则返回段 0。

GetSubregionType(CompositeRegion, Index)

返回指定子区域的形状类型。

GetWidth(Structure)

从索引的 Cross 或 Region 结构返回宽度值。

GetX(结构, [Index1], [Index2])

从索引 Annulus、Circle、Cross、Fixture、Fixtures、Line、Point 或 Region 结构返回 x 坐标。

注意: Index2,仅限边缘,指定端点(0 或 1)。

GetY(结构, [Index1], [Index2])

返回索引 Annulus、Circle、Cross、Fixture、Fixtures、Line、Point 或 Region 结构的 y 坐标。

注意: Index2,仅限边缘,指定端点(0 或 1)。