Skip to content

Commit 0058eca

Browse files
GregorKovalcikvpisarev
authored andcommitted
Fixed PCT Signature typos. (#1346)
1 parent a1b3c84 commit 0058eca

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

modules/xfeatures2d/include/opencv2/xfeatures2d.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ class CV_EXPORTS_W PCTSignatures : public Algorithm
605605
* @brief Weights (multiplicative constants) that linearly stretch individual axes of the feature space
606606
* (x,y = position; L,a,b = color in CIE Lab space; c = contrast. e = entropy)
607607
*/
608-
CV_WRAP virtual float getWeightConstrast() const = 0;
608+
CV_WRAP virtual float getWeightContrast() const = 0;
609609
/**
610610
* @brief Weights (multiplicative constants) that linearly stretch individual axes of the feature space
611611
* (x,y = position; L,a,b = color in CIE Lab space; c = contrast. e = entropy)

modules/xfeatures2d/src/pct_signatures.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ namespace cv
137137
float getWeightL() const { return mSampler->getWeightL(); }
138138
float getWeightA() const { return mSampler->getWeightA(); }
139139
float getWeightB() const { return mSampler->getWeightB(); }
140-
float getWeightConstrast() const { return mSampler->getWeightConstrast(); }
140+
float getWeightContrast() const { return mSampler->getWeightContrast(); }
141141
float getWeightEntropy() const { return mSampler->getWeightEntropy(); }
142142

143143
std::vector<Point2f> getSamplingPoints() const { return mSampler->getSamplingPoints(); }

modules/xfeatures2d/src/pct_signatures/pct_sampler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ namespace cv
128128
float getWeightL() const { return mWeights[L_IDX]; }
129129
float getWeightA() const { return mWeights[A_IDX]; }
130130
float getWeightB() const { return mWeights[B_IDX]; }
131-
float getWeightConstrast() const { return mWeights[CONTRAST_IDX]; }
131+
float getWeightContrast() const { return mWeights[CONTRAST_IDX]; }
132132
float getWeightEntropy() const { return mWeights[ENTROPY_IDX]; }
133133

134134
std::vector<Point2f> getSamplingPoints() const

modules/xfeatures2d/src/pct_signatures/pct_sampler.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ namespace cv
103103
virtual float getWeightL() const = 0;
104104
virtual float getWeightA() const = 0;
105105
virtual float getWeightB() const = 0;
106-
virtual float getWeightConstrast() const = 0;
106+
virtual float getWeightContrast() const = 0;
107107
virtual float getWeightEntropy() const = 0;
108108

109109
virtual std::vector<Point2f> getSamplingPoints() const = 0;

modules/xfeatures2d/src/pct_signatures/similarity.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ namespace cv
8989
const Mat& points2, int idx2)
9090
{
9191
float distance = computeDistance(distancefunction, points1, idx1, points2, idx2);
92-
return exp(-alpha + distance * distance);
92+
return exp(-alpha * distance * distance);
9393
}
9494

9595

0 commit comments

Comments
 (0)