SearchWinType属性
适用
视觉对象:Blob、ColorMatch、Contour、Correlation、DefectFinder、Geometric、ImageOp、OCR
说明
设定/返回搜索窗口类型。
用法
VGet Sequence.Object.SearchWinType, var
VSet Sequence.Object.SearchWinType, value
- Sequence
- 表示序列名的字符串变量
- Object
- 对象名或表示对象名的字符串变量对象必须存在于指定的序列中。
- var
- 表示属性值的整数变量
- value
- 表示新属性值的整数值或表达式
值
以下整数值用于指定搜索窗口类型:
- 1 - Rectangle
- 视觉常数:VISION_WINTYPE_RECTANGLE
- 2 - RotatedRectangle
- 视觉常数:VISION_WINTYPE_ROTATEDRECT
- 3 - Circle
- 视觉常数:VISION_WINTYPE_CIRCLE
- 4 - Arc
- 视觉常数:VISION_WINTYPE_ARC
- 9 - Polygon
- 视觉常数:VISION_WINTYPE_POLYGON
详细说明
设定及返回搜索窗口类型。可用值如下所示:
- 1 - Rectangle:无法旋转的矩形搜索窗口。
- 2 - RotatedRectangle:可旋转的矩形搜索窗口。
- 3 - Circle:圆形搜索窗口
- 4 - Arc:圆弧形搜索窗口
- 9 - Polygon:具有12条边和12个点的多边形搜索窗口
只有Blob、Correlation、Geometric和OCR 对象可以设置4 - Arc。
只有Blob、Correlation、和Geometri 对象可以设置9 - Polygon。
OCR只能设置为1 - Rectangle和4 - Arc。
如设置为4 - Arc时,可以使用SearchWinAngleStart、SearchWinAngleEnd、SearchWinRadiusInner、SearchWinRadiusOuter属性。但是SearchWinHeight、SearchWinLeft、SearchWinTop、SearchWinWidth属性则无法使用。
参照
SearchWinAngle属性, SearchWinCenterX属性, SearchWinCenterY属性, SearchWinHeight属性, SearchWinWidth属性, SearchWinAngleStart属性, SearchWinAngleEnd属性, SearchWinRadiusInner属性, SearchWinRadiusOuter属性, SearchWinPolygonPointX1属性, SearchWinPolygonPointY1属性, SearchWinPolygonPointX2属性, SearchWinPolygonPointY2属性, SearchWinPolygonPointX3属性, SearchWinPolygonPointY3属性, SearchWinPolygonPointX4属性, SearchWinPolygonPointY4属性, SearchWinPolygonPointX5属性, SearchWinPolygonPointY5属性, SearchWinPolygonPointX6属性, SearchWinPolygonPointY6属性, SearchWinPolygonPointX7属性, SearchWinPolygonPointY7属性, SearchWinPolygonPointX8属性, SearchWinPolygonPointY8属性, SearchWinPolygonPointX9属性, SearchWinPolygonPointY9属性, SearchWinPolygonPointX10属性, SearchWinPolygonPointY10属性, SearchWinPolygonPointX11属性, SearchWinPolygonPointY11属性, SearchWinPolygonPointX12属性, SearchWinPolygonPointY12 属性