IDS peak comfortC v1.9.0
Loading...
Searching...
No Matches
Sharpness measurement

Functions

peak_status peak_IPL_Sharpness_Measure (peak_frame_handle hFrame, peak_roi roi, peak_sharpness_algorithm sharpnessAlgorithm, double *calculatedValue)
 Measures the sharpness in the image.
 

Detailed Description

Sharpness measurement related functions and types.

Function Documentation

◆ peak_IPL_Sharpness_Measure()

peak_status peak_IPL_Sharpness_Measure ( peak_frame_handle  hFrame,
peak_roi  roi,
peak_sharpness_algorithm  sharpnessAlgorithm,
double *  calculatedValue 
)

Measures the sharpness in the image.

Measures the sharpness in the image or image roi using the specified sharpness algorithm. The measured values are relative so you should compare values at different focus levels to find the best sharpness value. Higher values correspond to sharper images.

Parameters
[in]hFrameThe frame handle.
[in]roiThe roi in which to measure the sharpness. Must be at least 20x20 pixels.
[in]sharpnessAlgorithmThe algorithm used for measuring sharpness.
[out]calculatedValueThe measured sharpness value.
Returns
PEAK_STATUS_SUCCESS Operation was successful; no error occurred.
PEAK_STATUS_INVALID_PARAMETER roi is out of range, algorithm is invalid or calculated_value is an invalid pointer.
PEAK_STATUS_INVALID_HANDLE hFrame is an invalid frame handle.
PEAK_STATUS_NOT_INITIALIZED The library is not initialized.
PEAK_STATUS_ERROR An unexpected internal error occurred.