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
bd447c0f
Commit
bd447c0f
authored
Jan 31, 2017
by
oqtvs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue 975 - fixed visual studio 2010 build errors on module xfeatures2d
parent
0b3b096f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
boostdesc.cpp
modules/xfeatures2d/src/boostdesc.cpp
+5
-5
harris_lapace_detector.cpp
modules/xfeatures2d/src/harris_lapace_detector.cpp
+1
-1
pct_signatures.cpp
modules/xfeatures2d/src/pct_signatures.cpp
+1
-1
No files found.
modules/xfeatures2d/src/boostdesc.cpp
View file @
bd447c0f
...
...
@@ -232,7 +232,7 @@ static void computeGradientMaps( const Mat& im,
break
;
case
ASSIGN_HARD_MAGN
:
gradMap
[
index
].
at
<
uchar
>
(
i
,
j
)
=
(
uchar
)
r
ound
(
gradMagnitude
);
gradMap
[
index
].
at
<
uchar
>
(
i
,
j
)
=
(
uchar
)
cvR
ound
(
gradMagnitude
);
break
;
case
ASSIGN_BILINEAR
:
...
...
@@ -240,8 +240,8 @@ static void computeGradientMaps( const Mat& im,
index2
=
(
index2
==
orientQuant
)
?
0
:
index2
;
binCenter
=
(
index
+
0.5
f
)
*
binSize
;
weight
=
1
-
abs
(
theta
-
binCenter
)
/
binSize
;
gradMap
[
index
].
at
<
uchar
>
(
i
,
j
)
=
(
uchar
)
r
ound
(
255
*
weight
);
gradMap
[
index2
].
at
<
uchar
>
(
i
,
j
)
=
(
uchar
)
r
ound
(
255
*
(
1
-
weight
)
);
gradMap
[
index
].
at
<
uchar
>
(
i
,
j
)
=
(
uchar
)
cvR
ound
(
255
*
weight
);
gradMap
[
index2
].
at
<
uchar
>
(
i
,
j
)
=
(
uchar
)
cvR
ound
(
255
*
(
1
-
weight
)
);
break
;
case
ASSIGN_SOFT
:
...
...
@@ -251,7 +251,7 @@ static void computeGradientMaps( const Mat& im,
binCenter
=
(
index2
+
0.5
f
)
*
binSize
;
weight
=
cos
(
theta
-
binCenter
);
weight
=
(
weight
<
0
)
?
0
:
weight
;
gradMap
[
index2
].
at
<
uchar
>
(
i
,
j
)
=
(
uchar
)
r
ound
(
255
*
weight
);
gradMap
[
index2
].
at
<
uchar
>
(
i
,
j
)
=
(
uchar
)
cvR
ound
(
255
*
weight
);
}
break
;
...
...
@@ -262,7 +262,7 @@ static void computeGradientMaps( const Mat& im,
binCenter
=
(
index2
+
0.5
f
)
*
binSize
;
weight
=
cos
(
theta
-
binCenter
);
weight
=
(
weight
<
0
)
?
0
:
weight
;
gradMap
[
index2
].
at
<
uchar
>
(
i
,
j
)
=
(
uchar
)
r
ound
(
gradMagnitude
*
weight
);
gradMap
[
index2
].
at
<
uchar
>
(
i
,
j
)
=
(
uchar
)
cvR
ound
(
gradMagnitude
*
weight
);
}
break
;
}
// end switch
...
...
modules/xfeatures2d/src/harris_lapace_detector.cpp
View file @
bd447c0f
...
...
@@ -104,7 +104,7 @@ void Pyramid::build(const Mat& img, bool DOG)
Size
imgSize
=
img
.
size
();
int
minSize
=
MIN
(
imgSize
.
width
,
imgSize
.
height
);
int
octavesN
=
MIN
(
params
.
octavesN
,
int
(
floor
(
log
((
double
)
minSize
)
/
log
(
2
))));
int
octavesN
=
MIN
(
params
.
octavesN
,
int
(
floor
(
log
((
double
)
minSize
)
/
log
(
(
float
)
2
))));
float
sigma0
=
params
.
sigma0
;
float
sigma
=
sigma0
;
int
layersN
=
params
.
layersN
+
3
;
...
...
modules/xfeatures2d/src/pct_signatures.cpp
View file @
bd447c0f
...
...
@@ -397,7 +397,7 @@ namespace cv
break
;
case
REGULAR
:
{
int
gridSize
=
(
int
)
ceil
(
sqrt
(
count
));
int
gridSize
=
(
int
)
ceil
(
sqrt
(
(
float
)
count
));
const
float
step
=
1.0
f
/
gridSize
;
const
float
halfStep
=
step
/
2
;
float
x
=
halfStep
;
...
...
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