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
22e57f59
Commit
22e57f59
authored
Aug 20, 2015
by
Maksim Shabunin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xfeatures2d tests
parent
ba49cfab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
daisy.cpp
modules/xfeatures2d/src/daisy.cpp
+5
-5
test_rotation_and_scale_invariance.cpp
...s/xfeatures2d/test/test_rotation_and_scale_invariance.cpp
+2
-2
No files found.
modules/xfeatures2d/src/daisy.cpp
View file @
22e57f59
...
...
@@ -602,10 +602,10 @@ static void bi_get_histogram( float* histogram, const double y, const double x,
// A C --> pixel positions
// B D
const
float
*
A
=
hcube
->
ptr
<
float
>
(
0
,
mny
*
_hist_th_q_no
,
mnx
*
_hist_th_q_no
);
const
float
*
B
=
hcube
->
ptr
<
float
>
(
0
,
(
mny
+
1
)
*
_hist_th_q_no
,
mnx
*
_hist_th_q_no
);
const
float
*
C
=
hcube
->
ptr
<
float
>
(
0
,
mny
*
_hist_th_q_no
,
(
mnx
+
1
)
*
_hist_th_q_no
);
const
float
*
D
=
hcube
->
ptr
<
float
>
(
0
,
(
mny
+
1
)
*
_hist_th_q_no
,
(
mnx
+
1
)
*
_hist_th_q_no
);
const
float
*
A
=
hcube
->
ptr
<
float
>
(
0
,
mny
,
mnx
);
const
float
*
B
=
hcube
->
ptr
<
float
>
(
0
,
(
mny
+
1
)
,
mnx
);
const
float
*
C
=
hcube
->
ptr
<
float
>
(
0
,
mny
,
(
mnx
+
1
)
);
const
float
*
D
=
hcube
->
ptr
<
float
>
(
0
,
(
mny
+
1
)
,
(
mnx
+
1
)
);
double
alpha
=
mnx
+
1
-
x
;
double
beta
=
mny
+
1
-
y
;
...
...
@@ -1156,7 +1156,7 @@ struct ComputeHistogramsInvoker : ParallelLoopBody
Rect
(
0
,
0
,
layers
->
at
(
r
).
size
[
2
]
-
1
,
layers
->
at
(
r
).
size
[
1
]
-
1
)
)
)
continue
;
float
*
hist
=
layers
->
at
(
r
).
ptr
<
float
>
(
0
,
y
*
_hist_th_q_no
,
x
*
_hist_th_q_no
);
float
*
hist
=
layers
->
at
(
r
).
ptr
<
float
>
(
0
,
y
,
x
);
for
(
int
h
=
0
;
h
<
_hist_th_q_no
;
h
++
)
hist
[
h
]
=
layers
->
at
(
r
+
1
).
at
<
float
>
(
h
,
y
,
x
);
...
...
modules/xfeatures2d/test/test_rotation_and_scale_invariance.cpp
View file @
22e57f59
...
...
@@ -660,7 +660,7 @@ TEST(Features2d_RotationInvariance_Descriptor_LATCH, regression)
test
.
safe_run
();
}
TEST
(
Features2d_RotationInvariance_Descriptor_DAISY
,
regression
)
TEST
(
DISABLED_
Features2d_RotationInvariance_Descriptor_DAISY
,
regression
)
{
DescriptorRotationInvarianceTest
test
(
BRISK
::
create
(),
DAISY
::
create
(
15
,
3
,
8
,
8
,
DAISY
::
NRM_NONE
,
noArray
(),
true
,
true
),
...
...
@@ -754,7 +754,7 @@ TEST(Features2d_RotationInvariance2_Detector_SURF, regression)
ASSERT_LT
(
fabs
(
keypoints
[
1
].
response
-
keypoints
[
4
].
response
),
1e-6
);
}
TEST
(
Features2d_ScaleInvariance_Descriptor_DAISY
,
regression
)
TEST
(
DISABLED_
Features2d_ScaleInvariance_Descriptor_DAISY
,
regression
)
{
DescriptorScaleInvarianceTest
test
(
BRISK
::
create
(),
DAISY
::
create
(
15
,
3
,
8
,
8
,
DAISY
::
NRM_NONE
,
noArray
(),
true
,
true
),
...
...
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