![]() |
IDS peak comfortC v1.9.0
|
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. | |
Sharpness measurement related functions and types.
| 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.
| [in] | hFrame | The frame handle. |
| [in] | roi | The roi in which to measure the sharpness. Must be at least 20x20 pixels. |
| [in] | sharpnessAlgorithm | The algorithm used for measuring sharpness. |
| [out] | calculatedValue | The measured sharpness value. |
roi is out of range, algorithm is invalid or calculated_value is an invalid pointer. hFrame is an invalid frame handle.