8#ifndef META_OCEAN_TEST_TESTCV_TEST_HISTOGRAM_H 
    9#define META_OCEAN_TEST_TESTCV_TEST_HISTOGRAM_H 
   43        static bool test(
const double testDuration, 
Worker& worker);
 
  109        static unsigned int validateTileLookupTables(
const unsigned char* source, 
const unsigned int width, 
const unsigned int height, 
const std::vector<unsigned char>& validationLookupTables, 
const unsigned int horizontalTiles, 
const unsigned int verticalTiles, 
const Scalar clipLimit, 
double& maxAbsError, 
const unsigned int sourcePaddingElements = 0u, 
const double maxAbsErrorThresholdMultiple = 1.0, 
const double maxAbsErrorThreshold = 25.0);
 
  126        static bool validateEqualization8BitPerChannel(
const unsigned char* 
const source, 
const unsigned int width, 
const unsigned height, 
const unsigned char* 
const validationTarget, 
const Scalar clipLimit = 
Scalar(40), 
const unsigned int horizontalTiles = 8u, 
const unsigned int verticalTiles = 8u, 
const unsigned int sourcePaddingElements = 0u, 
const unsigned int validationTargetPaddingElements = 0u, 
double* maxError = 
nullptr, 
unsigned char* groundtruth = 
nullptr);
 
  164        template <
unsigned int tChannels>
 
  177        template <
unsigned int tChannels>
 
  196        template <
unsigned int tChannels>
 
 
Implementation of Contrast-Limited Adaptive Histogram Equalization (CLAHE).
Definition Histogram.h:755
This class implements a standard histogram object storing 8 bit per channel.
Definition Histogram.h:208
This class implements a generator for random numbers.
Definition RandomGenerator.h:42
This class implements a pixel bounding box test.
Definition TestHistogram.h:34
static bool testContrastLimitedAdaptiveHistogramTileLookupTables(const double testDuration, Worker &worker)
Performance and validation test for the computation of the CLAHE lookup tables.
static bool test(const double testDuration, Worker &worker)
Tests the histogram function.
static bool validateBilinearInterpolationParameters(const Indices32 &lowBins, const std::vector< unsigned char > &lowFactors_fixed7, const unsigned int imageEdgeLength, const unsigned int tilesCount)
Validation function for the computation of the CLAHE horizontal (or vertical) bilinear interpolation ...
static unsigned int validateTileLookupTables(const unsigned char *source, const unsigned int width, const unsigned int height, const std::vector< unsigned char > &validationLookupTables, const unsigned int horizontalTiles, const unsigned int verticalTiles, const Scalar clipLimit, double &maxAbsError, const unsigned int sourcePaddingElements=0u, const double maxAbsErrorThresholdMultiple=1.0, const double maxAbsErrorThreshold=25.0)
Validation function for the computation of the CLAHE tile lookup tables.
static bool testDetermineHistogram8BitPerChannelSubFrame(const double testDuration, const unsigned int width, const unsigned int height, RandomGenerator &randomGenerator, Worker &worker)
Performance and validation test for the computation of histograms for sub-frames/-regions of images.
static bool testContrastLimitedAdaptiveHistogramTileLookupTables(const unsigned int width, const unsigned int height, const Scalar clipLimit, const unsigned int horizontalTiles, const unsigned int verticalTiles, const double testDuration, Worker &worker)
Performance and validation test for the computation of the CLAHE lookup tables.
static bool testDetermineHistogram8BitPerChannel(const double testDuration, const unsigned int width, const unsigned int height, RandomGenerator &randomGenerator, Worker &worker)
Performance and validation test for the computation of histograms.
static bool testDetermineHistogram8BitPerChannel(const double testDuration, Worker &worker)
Performance and validation test for the computation of histograms.
static bool testDetermineHistogram8BitPerChannelSubFrame(const double testDuration, Worker &worker)
Performance and validation test for the computation of histograms on sub-frames/-regions of an image.
static bool validateEqualization8BitPerChannel(const unsigned char *const source, const unsigned int width, const unsigned height, const unsigned char *const validationTarget, const Scalar clipLimit=Scalar(40), const unsigned int horizontalTiles=8u, const unsigned int verticalTiles=8u, const unsigned int sourcePaddingElements=0u, const unsigned int validationTargetPaddingElements=0u, double *maxError=nullptr, unsigned char *groundtruth=nullptr)
Validation function for CLAHE.
static bool testContrastLimitedHistogramEqualization(const unsigned int width, const unsigned int height, const Scalar clipLimit, const unsigned int horizontalTiles, const unsigned int verticalTiles, const double testDuration, Worker &worker)
Test the Contrast-Limited Histogram Equalization (CLAHE)
static bool validateDetermineHistogram8BitPerChannel(const uint8_t *frame, const unsigned int width, const unsigned int height, const unsigned int framePaddingElements, const unsigned int subFrameX, const unsigned int subFrameY, const unsigned int subFrameWidth, const unsigned int subFrameHeight, const CV::Histogram::Histogram8BitPerChannel< tChannels > &histogramToValidate)
Validate the computation of image histograms.
static bool testContrastLimitedHistogramEqualization(const double testDuration, Worker &worker)
Test the Contrast-Limited Histogram Equalization (CLAHE)
static bool testContrastLimitedAdaptiveBilinearInterpolationParameters(const double testDuration)
Validation test for the computation of the CLAHE horizontal bilinear interpolation parameters.
This class implements a worker able to distribute function calls over different threads.
Definition Worker.h:33
std::vector< Index32 > Indices32
Definition of a vector holding 32 bit index values.
Definition Base.h:96
float Scalar
Definition of a scalar type.
Definition Math.h:129
The namespace covering the entire Ocean framework.
Definition Accessor.h:15