CogBlobResult GetMedianX Method Cognex VisionPro
The x-coordinate of the point through which two orthogonal lines each divide the blob's area in half. The orthogonal lines are aligned with the Axis specified. MedianX is specified in units of the input image's selected space.

Namespace: Cognex.VisionPro.Blob
Assembly: Cognex.VisionPro.Blob (in Cognex.VisionPro.Blob.dll) Version: 65.1.0.0
Syntax

public double GetMedianX(
	CogBlobAxisConstants axis
)

Parameters

axis
Type: Cognex.VisionPro.Blob CogBlobAxisConstants
A value defined in CogBlobAxisConstants which determines the axis to which the median is aligned.

Field Value

Type: Double
The default is Principal.
Exceptions

ExceptionCondition
InvalidOperationException If no result data is available.
Remarks

The x-coordinate of the point through which two orthogonal lines each divide the blob's area in half. The orthogonal lines are aligned with the Axis specified. MedianX is specified in units of the input image's selected space.

This measure always makes use of the current ExtremaExcludeMode; you cannot specify PixelAlignedNoExclude for axis.

Note that this measure is only cached for the most recently requested axis; if you request this measure for a different axis, it is recomputed.

See Also