|
The blo Library
|
Image histogram processor. More...
#include <ImageHistogram.h>
Public Member Functions | |
| ImageHistogram () | |
| Default constructor. | |
| ImageHistogram (int roiWidth, int roiHeight) | |
| Constructs image histogram processor of specified size work buffers. | |
| ImageHistogram (const ImageHistogram &rhs) | |
| Copy constructor. | |
| ImageHistogram (ImageHistogram &&rhs) noexcept | |
| Move constructor. | |
| virtual | ~ImageHistogram () |
| Destructor. | |
| ImageHistogram & | operator= (const ImageHistogram &rhs) |
| Copy assignment operator. | |
| ImageHistogram & | operator= (ImageHistogram &&rhs) noexcept |
| Move assignment operator. | |
| void | resize (int roiWidth, int roiHeight) |
| Resizes work buffers. | |
| void | clear () |
| Resizes work buffers to zero size. | |
| void | setLevels (const float *const pSrcLevels[], const int srcNumLevels[]) |
| Sets the histogram levels. | |
| void | numLevels (int dstNumLevels[]) const |
| Number of histogram levels. | |
| void | levels (float *const pDstLevels[]) const |
| Histogram level values. | |
| void | numBins (uint32_t dstNumBins[]) const |
| Number of histogram bins. | |
| void | calcHistogram (const T *pSrc, int srcStep, int roiWidth, int roiHeight, uint32_t *const pDstHist[]) |
| Computes the histogram of an image. | |
Static Public Member Functions | |
| static void | levelsUniformStep (float lowerLevel, float upperLevel, float *const pDstLevels[], int numLevels) |
| Calculates the uniformly distributed levels for a histogram. | |
| static void | levelsUniformStep (const float srcLowerLevel[], const float srcUpperLevel[], float *const pDstLevels[], const int numLevels[]) |
| Calculates the uniformly distributed levels for a histogram. | |
Related Functions | |
(Note that these are not member functions.) | |
| BLO_EXPIMP_TEMPLATE template class BLO_API | ImageHistogram< uint8_t, 1 > |
| BLO_EXPIMP_TEMPLATE template class BLO_API | ImageHistogram< uint8_t, 3 > |
| BLO_EXPIMP_TEMPLATE template class BLO_API | ImageHistogram< uint8_t, 4 > |
| BLO_EXPIMP_TEMPLATE template class BLO_API | ImageHistogram< uint16_t, 1 > |
| BLO_EXPIMP_TEMPLATE template class BLO_API | ImageHistogram< uint16_t, 3 > |
| BLO_EXPIMP_TEMPLATE template class BLO_API | ImageHistogram< uint16_t, 4 > |
| BLO_EXPIMP_TEMPLATE template class BLO_API | ImageHistogram< int16_t, 1 > |
| BLO_EXPIMP_TEMPLATE template class BLO_API | ImageHistogram< int16_t, 3 > |
| BLO_EXPIMP_TEMPLATE template class BLO_API | ImageHistogram< int16_t, 4 > |
| BLO_EXPIMP_TEMPLATE template class BLO_API | ImageHistogram< float, 1 > |
| BLO_EXPIMP_TEMPLATE template class BLO_API | ImageHistogram< float, 3 > |
| BLO_EXPIMP_TEMPLATE template class BLO_API | ImageHistogram< float, 4 > |
Image histogram processor.
| T | Data type. |
| C | Number of channels. |
| blo::ImageHistogram< T, C >::ImageHistogram | ( | ) |
Default constructor.
| blo::ImageHistogram< T, C >::ImageHistogram | ( | int | roiWidth, |
| int | roiHeight | ||
| ) |
Constructs image histogram processor of specified size work buffers.
| roiWidth | Width of the image ROI in pixels to resize work buffers to. |
| roiHeight | Height of the image ROI in pixels to resize work buffers to. |
| blo::ImageHistogram< T, C >::ImageHistogram | ( | const ImageHistogram< T, C > & | rhs | ) |
Copy constructor.
|
noexcept |
Move constructor.
|
virtual |
Destructor.
| void blo::ImageHistogram< T, C >::calcHistogram | ( | const T * | pSrc, |
| int | srcStep, | ||
| int | roiWidth, | ||
| int | roiHeight, | ||
| uint32_t *const | pDstHist[] | ||
| ) |
Computes the histogram of an image.
| pSrc | Pointer to the source image. |
| srcStep | Step in bytes between the rows in the source image. |
| roiWidth | Width of the source image ROI in pixels. |
| roiHeight | Height of the source image ROI in pixels. |
| pDstHist | Array of pointers to the computed histogram for each channel. |
| void blo::ImageHistogram< T, C >::clear | ( | ) |
Resizes work buffers to zero size.
| void blo::ImageHistogram< T, C >::levels | ( | float *const | pDstLevels[] | ) | const |
Histogram level values.
| pDstLevels | Array of pointers to the histogram levels for each channel. |
|
static |
Calculates the uniformly distributed levels for a histogram.
| srcLowerLevel | Array of the lower level for uniform histogram for each channel. |
| srcUpperLevel | Array of the upper level for uniform histogram for each channel. |
| pDstLevels | Array of pointers to the histogram levels for each channel. |
| numLevels | Array of the number of levels for each channel. |
|
static |
Calculates the uniformly distributed levels for a histogram.
This function sets the uniformly distributed histogram levels used when calculating the histogram.
| lowerLevel | Lower level for uniform histogram for all channels. |
| upperLevel | Upper level for uniform histogram for all channels. |
| pDstLevels | Array of pointers to the histogram levels for each channel. |
| numLevels | Number of levels for all channel. |
| void blo::ImageHistogram< T, C >::numBins | ( | uint32_t | dstNumBins[] | ) | const |
Number of histogram bins.
| dstNumBins | Array of the number of histogram bins for each channel. |
| void blo::ImageHistogram< T, C >::numLevels | ( | int | dstNumLevels[] | ) | const |
Number of histogram levels.
| dstNumLevels | Array of the number of levels for each channel. |
| ImageHistogram & blo::ImageHistogram< T, C >::operator= | ( | const ImageHistogram< T, C > & | rhs | ) |
Copy assignment operator.
|
noexcept |
Move assignment operator.
| void blo::ImageHistogram< T, C >::resize | ( | int | roiWidth, |
| int | roiHeight | ||
| ) |
Resizes work buffers.
| roiWidth | Width of the image ROI in pixels to resize work buffers to. |
| roiHeight | Height of the image ROI in pixels to resize work buffers to. |
| void blo::ImageHistogram< T, C >::setLevels | ( | const float *const | pSrcLevels[], |
| const int | srcNumLevels[] | ||
| ) |
Sets the histogram levels.
This function sets the histogram levels used when calculating the histogram.
| pSrcLevels | Array of pointers to the histogram levels for each channel. |
| srcNumLevels | Array of the number of levels for each channel. |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |