![]() |
IDS peak IPL
v1.6.0
|
Configure and measure the sharpness of a given image. More...
#include <peak_ipl/algorithm/peak_ipl_sharpness.hpp>
Classes | |
| struct | SharpnessROI |
Public Types | |
| enum | SharpnessAlgorithm : uint16_t { SharpnessAlgorithm::Tenengrad, SharpnessAlgorithm::MeanScore, SharpnessAlgorithm::HistogramVariance, SharpnessAlgorithm::Sobel } |
| enum | SharpnessROIWeight : uint16_t { SharpnessROIWeight::Weak = 0x0021, SharpnessROIWeight::Medium = 0x0042, SharpnessROIWeight::Strong = 0x0063 } |
| using | SharpnessROIList = std::vector< SharpnessROI > |
Public Member Functions | |
| Sharpness () | |
| ~Sharpness () | |
| Sharpness (const Sharpness &)=delete | |
| Sharpness & | operator= (const Sharpness &)=delete |
| Sharpness (Sharpness &&) noexcept | |
| Sharpness & | operator= (Sharpness &&) noexcept |
| double | Measure (const Image &image) |
| Measures the sharpness of the given image. The higher the value, the better the sharpness. More... | |
| bool | IsPixelFormatSupported (PixelFormatName pixelFormatName) const |
| Checks if the given pixel format can be used for sharpness measurement. More... | |
| std::vector< PixelFormatName > | SupportedPixelFormats () const |
| Returns a list of supported pixel formats which can be used for shaprness measurement. More... | |
| void | SetAlgorithm (SharpnessAlgorithm algorithm) |
| Sets the algorithm to use for measurement calculation. More... | |
| SharpnessAlgorithm | Algorithm () const |
| Returns the used algorithm for the sharpness measurement. More... | |
| Size2D | ROIMinSize () const |
| Gets the minimum size of a ROI, in which the sharpness is measured. More... | |
| void | SetROIs (const SharpnessROIList &rois) |
| Sets region of interests in which the sharpness is measured. More... | |
| void | SetROI (const SharpnessROI &roi) |
| Set ROI in which the sharpness is measured. More... | |
| void | SetROI (const Rect2D &roi) |
| Set ROI in which the sharpness is measured. More... | |
| SharpnessROIList | ROIs () const |
| Gets ROIs in which the sharpness is measured. More... | |
Configure and measure the sharpness of a given image.
The class allows the measurement of the sharpness in a defined ROI of the given image. To get a sharpness value the edges in the image are evaluated. The sharpness can only be indicated as a relative value, as it depends on the edges in the current image. An image with less edges will not reach the sharpness value of an image with a lot of edges.
| using peak::ipl::Sharpness::SharpnessROIList = std::vector<SharpnessROI> |
|
strong |
|
strong |
|
inline |
|
inline |
|
delete |
|
inlinenoexcept |
|
inline |
Returns the used algorithm for the sharpness measurement.
|
inline |
Checks if the given pixel format can be used for sharpness measurement.
| [in] | pixelFormatName | The pixelFormat of the input image. |
|
inline |
Measures the sharpness of the given image. The higher the value, the better the sharpness.
| [in] | image | The image to measure the relative sharpness. |
| InvalidPixelFormat | pixel format is not supported. |
|
inline |
Gets the minimum size of a ROI, in which the sharpness is measured.
|
inline |
Gets ROIs in which the sharpness is measured.
|
inline |
Sets the algorithm to use for measurement calculation.
|
inline |
|
inline |
|
inline |
Sets region of interests in which the sharpness is measured.
| [in] | rois | SharpnessROIList to set. |
|
inline |
Returns a list of supported pixel formats which can be used for shaprness measurement.