![]() |
IDS peak comfortC v1.10.0
|
Functions | |
| PEAK_API_STATUS | peak_IPL_Sharpness_Measure (peak_frame_handle hFrame, peak_roi roi, peak_sharpness_algorithm sharpnessAlgorithm, double *calculatedValue) |
| Measures the sharpness in the image. | |
| PEAK_API_STATUS | peak_IPL_Sharpness_GetList (peak_sharpness_algorithm sharpnessAlgorithm, peak_pixel_format *pixelFormatList, size_t *pixelFormatSize) |
| Query the current supported pixel formats for the given algorithm. | |
Sharpness measurement related functions and types.
| PEAK_API_STATUS peak_IPL_Sharpness_GetList | ( | peak_sharpness_algorithm | sharpnessAlgorithm, |
| peak_pixel_format * | pixelFormatList, | ||
| size_t * | pixelFormatSize | ||
| ) |
Query the current supported pixel formats for the given algorithm.
Provides the supported pixel formats for the given algorithm
This function implements the Two Staged Data Query principle.
| [in] | sharpnessAlgorithm | The algorithm used for measuring sharpness. |
| [out] | pixelFormatList | Pointer to a user allocated array buffer to receive the pixel format list. If this parameter is NULL, pixelFormatSize will contain the current number of supported pixel formats. The needed size of pixelFormatList in bytes is pixelFormatSize x sizeof(peak_pixel_format). |
| [in,out] | pixelFormatSize |
|
pixelFormatList is not NULL and the value of *pixelFormatSize is too small to receive the expected amount of data. pixelFormatSize is an invalid pointer or sharpnessAlgorithm is an invalid algorithm. | PEAK_API_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.