Function lib3d::computeMeanVarianceHistogram
Defined in File evaluation.hpp
Function Documentation
-
std::vector<std::array<float, 4>> lib3d::computeMeanVarianceHistogram(const cv::Mat &iInputImg, const cv::Mat &iReferenceImg, const int &iNBins)
Method to compute mean and variance histogram of a given input image.
The Bins of the histogram are based on the data of the given reference image.
- Parameters:
iInputImg – [in] Input image of which the mean and the variance is to be computed.
iReferenceImg – [in] Reference image used to generate the histogram bins.
iNBins – [in] Number of bins that the histogram should have.
- Returns:
Histogram data. Each vector item in the first dimension holds the data for one histogram bin, thus there exist iNBins vector items. Each data bundle (2nd dimension) for one histgram bin successivly holds the borders of the bin (min,max), the mean value and the variance ( [0] min, [1] max, [2] mean, [3] variance ).