Cog3DRangeImageHeightCalculatorResult GetHistogramBinFromHeight Method Cognex VisionPro
Get the histogram bin index for a given height value. See also: GetHeightFromHistogramBin(Int32)

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

public int GetHistogramBinFromHeight(
	double height
)

Parameters

height
Type: System Double
The height from which to find a cooresponding histogram bin index.

Return Value

Type: Int32
Exceptions

ExceptionCondition
InvalidOperationException
  • If the result does not contain any histogram data.
  • If falls outside range of histogram data.
  • If the transform from histogram bins to height values is invalid.
See Also