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個の頂点を持つ多角形型のサーチウィンドウ

4 - Arcを設定できるオブジェクトはBlob、Correlation、Geometric、OCRのみです。

9 - Polygonを設定できるオブジェクトはBlob、Correlation、およびGeometricのみです。

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 プロパティー