The class binarize a rgb color image. To make the algorithm robust against noise, the foreground is estimated and the image is weighted with the foreground. (Foreground estimation is performed by a Mean Filter with a size of 32x32 px).
More...
#include <Binarization.h>
|
cv::Mat | computeFgd () const |
|
cv::Mat | computeMeanFgdEst (const cv::Mat &grayImg32F, const cv::Mat &mask) const |
|
cv::Scalar | computeConfidence () const |
|
virtual void | weightFunction (cv::Mat &grayImg, cv::Mat &thrImg, const cv::Mat &mask) |
|
float | setStrokeWidth (float strokeW) |
|
virtual float | thresholdVal (float *mean, float *std) const |
|
virtual float | contrastVal (const unsigned char *maxVal, const unsigned char *minVal) const override |
|
virtual void | calcFilterParams (int &filterS, int &Nm) override |
|
cv::Mat | compContrastImg (const cv::Mat &srcImg, const cv::Mat &mask) const |
|
cv::Mat | compBinContrastImg (const cv::Mat &contrastImg) const |
|
virtual float | strokeWidth (const cv::Mat &contrastImg) const |
|
void | computeDistHist (const cv::Mat &src, QList< int > *maxDiffList, QList< float > *localIntensity) const |
|
void | computeThrImg (const cv::Mat &grayImg32F, const cv::Mat &binContrast, cv::Mat &thresholdImg, cv::Mat &thresholdContrastPxImg) |
|
bool | checkInput () const override |
|
QString | debugName () const |
|
The class binarize a rgb color image. To make the algorithm robust against noise, the foreground is estimated and the image is weighted with the foreground. (Foreground estimation is performed by a Mean Filter with a size of 32x32 px).
- See also
- BinarizationSuAdapted
rdf::BinarizationSuFgdWeight::BinarizationSuFgdWeight |
( |
const cv::Mat & |
img, |
|
|
const cv::Mat & |
mask = cv::Mat() |
|
) |
| |
bool rdf::BinarizationSuFgdWeight::compute |
( |
| ) |
|
|
overridevirtual |
Computes the foreground weighted image.
- Returns
- True if the image could be computed.
Reimplemented from rdf::BinarizationSuAdapted.
cv::Scalar rdf::BinarizationSuFgdWeight::computeConfidence |
( |
| ) |
const |
|
protected |
cv::Mat rdf::BinarizationSuFgdWeight::computeFgd |
( |
| ) |
const |
|
protected |
cv::Mat rdf::BinarizationSuFgdWeight::computeMeanFgdEst |
( |
const cv::Mat & |
grayImg32F, |
|
|
const cv::Mat & |
mask |
|
) |
| const |
|
protected |
void rdf::BinarizationSuFgdWeight::weightFunction |
( |
cv::Mat & |
grayImg, |
|
|
cv::Mat & |
thrImg, |
|
|
const cv::Mat & |
mask |
|
) |
| |
|
protectedvirtual |
float rdf::BinarizationSuFgdWeight::mConfidence = -1.0f |
|
protected |
int rdf::BinarizationSuFgdWeight::mFgdEstFilterSize = 32 |
|
protected |
cv::Mat rdf::BinarizationSuFgdWeight::mFgdEstImg |
|
protected |
cv::Scalar rdf::BinarizationSuFgdWeight::mMeanContrast = cv::Scalar(-1.0f,-1.0f,-1.0f,-1.0f) |
|
protected |
float rdf::BinarizationSuFgdWeight::mSigmSlope = 15.0f |
|
protected |
cv::Scalar rdf::BinarizationSuFgdWeight::mStdContrast = cv::Scalar(-1.0f,-1.0f,-1.0f,-1.0f) |
|
protected |
The documentation for this class was generated from the following files: