Table of Contents

Method EstimateChessboardSharpness

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

EstimateChessboardSharpness(InputArray, Size, InputArray, float, bool, OutputArray)

Estimates the sharpness of a detected chessboard. Image sharpness, as well as brightness, are a critical parameter for accuracy of feature point extraction. As an example, consider the sharpness level of a camera as being described in terms of a Gaussian low pass filter and estimate the parameter based on the width of the transition area between a fully saturated pixel and the background pixel.

public static Scalar EstimateChessboardSharpness(InputArray image, Size patternSize, InputArray corners, float riseDistance = 0.8, bool vertical = false, OutputArray sharpness = default)

Parameters

image InputArray

source chessboard view; it must be a 8-bit grayscale or color image.

patternSize Size

the number of inner corners per chessboard row and column.

corners InputArray

Array of detected chessboard corners, the output of findChessboardCorners.

riseDistance float

Rise distance 0.8 means 10% ... 90% of the final signal strength.

vertical bool

By default edge responses for horizontal lines are calculated.

sharpness OutputArray

Optional output image with the sharpness in the sharpness assessment area.

Returns

Scalar

Scalar(average sharpness, average min brightness, average max brightness, 0).