CvInvokeEstimateChessboardSharpness Method |
http://www.emgu.com
Estimates the sharpness of a detected chessboard.
Image sharpness, as well as brightness, are a critical parameter for accuracte camera calibration. For accessing these parameters for filtering out problematic calibraiton images, this method calculates edge profiles by traveling from black to white chessboard cell centers. Based on this, the number of pixels is calculated required to transit from black to white. This width of the transition area is a good indication of how sharp the chessboard is imaged and should be below ~3.0 pixels.
Namespace:
Emgu.CV
Assembly:
Emgu.CV.Platform.NetStandard (in Emgu.CV.Platform.NetStandard.dll) Version: 4.3.0.3890
Syntaxpublic static MCvScalar EstimateChessboardSharpness(
IInputArray image,
Size patternSize,
IInputArray corners,
float riseDistance = 0.8f,
bool vertical = false,
IOutputArray sharpness = null
)
Public Shared Function EstimateChessboardSharpness (
image As IInputArray,
patternSize As Size,
corners As IInputArray,
Optional riseDistance As Single = 0.8F,
Optional vertical As Boolean = false,
Optional sharpness As IOutputArray = Nothing
) As MCvScalar
public:
static MCvScalar EstimateChessboardSharpness(
IInputArray^ image,
Size patternSize,
IInputArray^ corners,
float riseDistance = 0.8f,
bool vertical = false,
IOutputArray^ sharpness = nullptr
)
static member EstimateChessboardSharpness :
image : IInputArray *
patternSize : Size *
corners : IInputArray *
?riseDistance : float32 *
?vertical : bool *
?sharpness : IOutputArray
(* Defaults:
let _riseDistance = defaultArg riseDistance 0.8f
let _vertical = defaultArg vertical false
let _sharpness = defaultArg sharpness null
*)
-> MCvScalar
Parameters
- image
- Type: Emgu.CVIInputArray
Gray image used to find chessboard corners - patternSize
- Type: System.DrawingSize
Size of a found chessboard pattern - corners
- Type: Emgu.CVIInputArray
Corners found by findChessboardCorners(SB) - riseDistance (Optional)
- Type: SystemSingle
Rise distance 0.8 means 10% ... 90% of the final signal strength - vertical (Optional)
- Type: SystemBoolean
By default edge responses for horizontal lines are calculated - sharpness (Optional)
- Type: Emgu.CVIOutputArray
Optional output array with a sharpness value for calculated edge responses
Return Value
Type:
MCvScalarScalar(average sharpness, average min brightness, average max brightness,0)
See Also