Commit 0058eca1 authored by Gregor Kovalčík's avatar Gregor Kovalčík Committed by Vadim Pisarevsky

Fixed PCT Signature typos. (#1346)

parent a1b3c84c
......@@ -605,7 +605,7 @@ public:
* @brief Weights (multiplicative constants) that linearly stretch individual axes of the feature space
* (x,y = position; L,a,b = color in CIE Lab space; c = contrast. e = entropy)
*/
CV_WRAP virtual float getWeightConstrast() const = 0;
CV_WRAP virtual float getWeightContrast() const = 0;
/**
* @brief Weights (multiplicative constants) that linearly stretch individual axes of the feature space
* (x,y = position; L,a,b = color in CIE Lab space; c = contrast. e = entropy)
......
......@@ -137,7 +137,7 @@ namespace cv
float getWeightL() const { return mSampler->getWeightL(); }
float getWeightA() const { return mSampler->getWeightA(); }
float getWeightB() const { return mSampler->getWeightB(); }
float getWeightConstrast() const { return mSampler->getWeightConstrast(); }
float getWeightContrast() const { return mSampler->getWeightContrast(); }
float getWeightEntropy() const { return mSampler->getWeightEntropy(); }
std::vector<Point2f> getSamplingPoints() const { return mSampler->getSamplingPoints(); }
......
......@@ -128,7 +128,7 @@ namespace cv
float getWeightL() const { return mWeights[L_IDX]; }
float getWeightA() const { return mWeights[A_IDX]; }
float getWeightB() const { return mWeights[B_IDX]; }
float getWeightConstrast() const { return mWeights[CONTRAST_IDX]; }
float getWeightContrast() const { return mWeights[CONTRAST_IDX]; }
float getWeightEntropy() const { return mWeights[ENTROPY_IDX]; }
std::vector<Point2f> getSamplingPoints() const
......
......@@ -103,7 +103,7 @@ namespace cv
virtual float getWeightL() const = 0;
virtual float getWeightA() const = 0;
virtual float getWeightB() const = 0;
virtual float getWeightConstrast() const = 0;
virtual float getWeightContrast() const = 0;
virtual float getWeightEntropy() const = 0;
virtual std::vector<Point2f> getSamplingPoints() const = 0;
......
......@@ -89,7 +89,7 @@ namespace cv
const Mat& points2, int idx2)
{
float distance = computeDistance(distancefunction, points1, idx1, points2, idx2);
return exp(-alpha + distance * distance);
return exp(-alpha * distance * distance);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment