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
imageInputArraysource chessboard view; it must be a 8-bit grayscale or color image.
patternSizeSizethe number of inner corners per chessboard row and column.
cornersInputArrayArray of detected chessboard corners, the output of findChessboardCorners.
riseDistancefloatRise distance 0.8 means 10% ... 90% of the final signal strength.
verticalboolBy default edge responses for horizontal lines are calculated.
sharpnessOutputArrayOptional output image with the sharpness in the sharpness assessment area.
Returns
- Scalar
Scalar(average sharpness, average min brightness, average max brightness, 0).