CenterX Property
Applies To
Vision Objects: ArcFinder, ArcInspector, Contour, Edge, Polar
Description
Specifies the X Coordinate position to be used as the center point of an object in pixels.
Usage
VGet Sequence.Object.CenterX, var
VSet Sequence.Object.CenterX, value
- Sequence
- Name of a sequence or string variable containing a sequence name.
- Object
- Name of an object or string variable containing an object name. The object must exist in the specified sequence.
- var
- Real variable that will contain the value of the property.
- value
- Real number or expression for the new value of the property.
Values
Real number from 0 - (video width in pixels- 1). However, the detection range of the Polar object cannot exceed the valid pixel range of the camera. Therefore, the actual range is:
(0 + Radius) - (Current Pixel Coordinate X Resolution - Radius- 1)
Radius is a distance from the center of the Polar object to the outer side of the reach ring for the object.
For example, if an image resolution of ImageSize property is 640x480 and a radius is 16 pixels, it gives a range of 16–623.
Default: X coordinate screen position of the center of the Polar object
Remarks
This property is filled in automatically when the CenterPointObject property for a Polar object is set to another vision object. However, if the CenterPointObject property for a Polar object is set to Screen, then the user may set the CenterX property to position the Polar object.
The user may also set the CenterPointObject property for a Polar object automatically by physically dragging the Polar object to a new position on the screen. When this drag operation is done, the CenterX property is automatically updated with the new CenterX position of the Polar object.
CenterX property is available in Edge object only when Arc is set to SearchType property.
See Also
ArcFinder Object, ArcInspector Object, , Contour Object, CenterY Property, CenterPoint Property, Edge object, Polar Object