Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv_contrib
Commits
0058eca1
Commit
0058eca1
authored
Oct 10, 2017
by
Gregor Kovalčík
Committed by
Vadim Pisarevsky
Oct 10, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed PCT Signature typos. (#1346)
parent
a1b3c84c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
xfeatures2d.hpp
modules/xfeatures2d/include/opencv2/xfeatures2d.hpp
+1
-1
pct_signatures.cpp
modules/xfeatures2d/src/pct_signatures.cpp
+1
-1
pct_sampler.cpp
modules/xfeatures2d/src/pct_signatures/pct_sampler.cpp
+1
-1
pct_sampler.hpp
modules/xfeatures2d/src/pct_signatures/pct_sampler.hpp
+1
-1
similarity.hpp
modules/xfeatures2d/src/pct_signatures/similarity.hpp
+1
-1
No files found.
modules/xfeatures2d/include/opencv2/xfeatures2d.hpp
View file @
0058eca1
...
...
@@ -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
getWeightCon
s
trast
()
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)
...
...
modules/xfeatures2d/src/pct_signatures.cpp
View file @
0058eca1
...
...
@@ -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
getWeightCon
strast
()
const
{
return
mSampler
->
getWeightCons
trast
();
}
float
getWeightCon
trast
()
const
{
return
mSampler
->
getWeightCon
trast
();
}
float
getWeightEntropy
()
const
{
return
mSampler
->
getWeightEntropy
();
}
std
::
vector
<
Point2f
>
getSamplingPoints
()
const
{
return
mSampler
->
getSamplingPoints
();
}
...
...
modules/xfeatures2d/src/pct_signatures/pct_sampler.cpp
View file @
0058eca1
...
...
@@ -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
getWeightCon
strast
()
const
{
return
mWeights
[
CONTRAST_IDX
];
}
float
getWeightCon
trast
()
const
{
return
mWeights
[
CONTRAST_IDX
];
}
float
getWeightEntropy
()
const
{
return
mWeights
[
ENTROPY_IDX
];
}
std
::
vector
<
Point2f
>
getSamplingPoints
()
const
...
...
modules/xfeatures2d/src/pct_signatures/pct_sampler.hpp
View file @
0058eca1
...
...
@@ -103,7 +103,7 @@ namespace cv
virtual
float
getWeightL
()
const
=
0
;
virtual
float
getWeightA
()
const
=
0
;
virtual
float
getWeightB
()
const
=
0
;
virtual
float
getWeightCon
s
trast
()
const
=
0
;
virtual
float
getWeightContrast
()
const
=
0
;
virtual
float
getWeightEntropy
()
const
=
0
;
virtual
std
::
vector
<
Point2f
>
getSamplingPoints
()
const
=
0
;
...
...
modules/xfeatures2d/src/pct_signatures/similarity.hpp
View file @
0058eca1
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment