![]() |
IDS peak IPL
v1.9.3
|
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 } |
| Measure Algorithms. More... | |
| enum | SharpnessROIWeight : uint16_t { SharpnessROIWeight::Weak = 0x0021, SharpnessROIWeight::Medium = 0x0042, SharpnessROIWeight::Strong = 0x0063 } |
| using | SharpnessROIList = std::vector< SharpnessROI > |
Public Member Functions | |
| Sharpness () | |
| Constructor for a new Sharpness instance. More... | |
| ~Sharpness () | |
| Destructor for the Sharpness instance. More... | |
| Sharpness (const Sharpness &other) | |
| Copy Constructor for a new Sharpness instance. More... | |
| Sharpness & | operator= (const Sharpness &other) |
| Copy assigment for Sharpness instance. More... | |
| Sharpness (Sharpness &&other) noexcept | |
| Move constructor for Sharpness instance. More... | |
| Sharpness & | operator= (Sharpness &&other) noexcept |
| Move assignment for Sharpness instance. More... | |
| double | Measure (const Image &image) |
| Measures the sharpness of the given image. The higher the value, the better the sharpness. More... | |
| void | SetAlgorithm (SharpnessAlgorithm algorithm) |
| Sets the algorithm used for measurement calculation. More... | |
| void | SetROIs (const SharpnessROIList &rois) |
| Sets the 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... | |
Public Attributes | |
| PEAK_IPL_MAYBE_UNUSED = inline bool IsPixelFormatSupported(PixelFormatName pixelFormatName) const | |
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 fewer edges won't reach the sharpness value of an image with a lot of edges.
| using peak::ipl::Sharpness::SharpnessROIList = std::vector<SharpnessROI> |
|
strong |
|
strong |
|
inline |
|
inline |
|
inline |
Copy Constructor for a new Sharpness instance.
Creates a new Sharpness instance.
| [in] | other | The other instance to acquire a reference for. |
|
inlinenoexcept |
Move constructor for Sharpness instance.
Moves the instance from other to this. Afterwards other is invalid.
| [in] | other | The other instance to move. |
|
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 isn't supported. |
Copy assigment for Sharpness instance.
Acquires a reference from other to this instance. If this instance already has a reference, it will be destroyed.
| [in] | other | The other instance to acquire a reference for. |
Move assignment for Sharpness instance.
Moves the instance from other to this. Afterwards other is invalid.
| [in] | other | The other instance to move. |
|
inline |
Sets the algorithm used for measurement calculation.
|
inline |
|
inline |
|
inline |
Sets the region of interests in which the sharpness is measured.
| [in] | rois | SharpnessROIList to set. |
| peak::ipl::Sharpness::PEAK_IPL_MAYBE_UNUSED = inline bool IsPixelFormatSupported(PixelFormatName pixelFormatName) const |