This class implements functions to measure the quality of images.
More...
|
static bool | structuralSimilarity8BitPerChannel (const uint8_t *const imageX, const uint8_t *const imageY, const unsigned int width, const unsigned int height, const unsigned int channels, const unsigned int imageXPaddingElements, const unsigned int imageYPaddingElements, double &meanSSIM, double &meanContrast, Worker *worker=nullptr) |
| Determines the structural similarity (SSIM) of two images with identical frame type for images with pixel formats that have 8 bit per channel. More...
|
|
static bool | multiScaleStructuralSimilarity8BitPerChannel (const uint8_t *const imageX, const uint8_t *const imageY, const unsigned int width, const unsigned int height, const unsigned int channels, const unsigned int imageXPaddingElements, const unsigned int imageYPaddingElements, double &msssim, Worker *worker=nullptr) |
| Determines the multi-scale structural similarity (MSSSIM) of two images with identical frame type for images with pixel formats that have 8 bit per channel. More...
|
|
This class implements functions to measure the quality of images.
◆ multiScaleStructuralSimilarity8BitPerChannel()
static bool Ocean::CV::ImageQuality::multiScaleStructuralSimilarity8BitPerChannel |
( |
const uint8_t *const |
imageX, |
|
|
const uint8_t *const |
imageY, |
|
|
const unsigned int |
width, |
|
|
const unsigned int |
height, |
|
|
const unsigned int |
channels, |
|
|
const unsigned int |
imageXPaddingElements, |
|
|
const unsigned int |
imageYPaddingElements, |
|
|
double & |
msssim, |
|
|
Worker * |
worker = nullptr |
|
) |
| |
|
static |
Determines the multi-scale structural similarity (MSSSIM) of two images with identical frame type for images with pixel formats that have 8 bit per channel.
Beware: For backwards-compatibility the implementation of this function does not fully match that in the paper "Multi-Scale Structural Similarity for Image Quality Assessment"
- Parameters
-
imageX | The first image to be used, must be valid |
imageY | The second image to be used, must be valid |
width | The width of both images in pixel, with range [11, infinity) |
height | The height of both images in pixel, with range [11, infinity) |
channels | The number of data channels both images have, with range [1, 4] |
imageXPaddingElements | Optional number of padding elements at the end of each first image row, in elements, with range [0, infinity) |
imageYPaddingElements | Optional number of padding elements at the end of each second image row, in elements, with range [0, infinity) |
msssim | The resulting msssim index, with range [0, 1] |
worker | Optional worker object to distribute the computation |
- See also
- structuralSimilarity8BitPerChannel().
◆ structuralSimilarity8BitPerChannel()
static bool Ocean::CV::ImageQuality::structuralSimilarity8BitPerChannel |
( |
const uint8_t *const |
imageX, |
|
|
const uint8_t *const |
imageY, |
|
|
const unsigned int |
width, |
|
|
const unsigned int |
height, |
|
|
const unsigned int |
channels, |
|
|
const unsigned int |
imageXPaddingElements, |
|
|
const unsigned int |
imageYPaddingElements, |
|
|
double & |
meanSSIM, |
|
|
double & |
meanContrast, |
|
|
Worker * |
worker = nullptr |
|
) |
| |
|
static |
Determines the structural similarity (SSIM) of two images with identical frame type for images with pixel formats that have 8 bit per channel.
- Parameters
-
imageX | The first image to be used, must be valid |
imageY | The second image to be used, e.g., a compressed/noisy version of image x, must be valid |
width | The width of both images in pixel, with range [11, infinity) |
height | The height of both images in pixel, with range [11, infinity) |
channels | The number of data channels both images have, with range [1, infinity) |
imageXPaddingElements | Optional number of padding elements at the end of each first image row, in elements, with range [0, infinity) |
imageYPaddingElements | Optional number of padding elements at the end of each second image row, in elements, with range [0, infinity) |
meanSSIM | The resulting ssim index, with range [0, 1] |
meanContrast | The resulting mean contrast measure, with range [0, 1] |
worker | Optional worker object to distribute the computation |
- See also
- multiScaleStructuralSimilarity8BitPerChannel().
The documentation for this class was generated from the following file: