Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Commits
527ff007
Commit
527ff007
authored
Apr 10, 2012
by
Andrey Pavlenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Java API: fixing more tests
parent
700bd454
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
SIFTDescriptorExtractorTest.java
...g/opencv/test/features2d/SIFTDescriptorExtractorTest.java
+8
-6
No files found.
modules/java/android_test/src/org/opencv/test/features2d/SIFTDescriptorExtractorTest.java
View file @
527ff007
...
...
@@ -33,10 +33,12 @@ public class SIFTDescriptorExtractorTest extends OpenCVTestCase {
matSize
=
100
;
truth
=
new
Mat
(
1
,
128
,
CvType
.
CV_32FC1
)
{
{
put
(
0
,
0
,
123
,
0
,
0
,
1
,
123
,
0
,
0
,
1
,
123
,
0
,
0
,
0
,
0
,
0
,
0
,
2
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
123
,
0
,
0
,
2
,
123
,
0
,
0
,
2
,
123
,
0
,
0
,
0
,
0
,
0
,
0
,
2
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
123
,
30
,
7
,
31
,
123
,
0
,
0
,
0
,
123
,
52
,
88
,
0
,
0
,
0
,
0
,
0
,
0
,
2
,
123
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
110
,
0
,
0
,
0
,
0
,
0
,
18
,
37
,
18
,
34
,
16
,
21
,
12
,
23
,
12
,
50
,
123
,
0
,
0
,
0
,
90
,
26
,
0
,
3
,
123
,
0
,
0
,
1
,
122
,
0
,
0
,
2
,
123
,
0
,
0
,
1
,
93
,
0
);
put
(
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
16
,
12
,
17
,
28
,
26
,
0
,
0
,
2
,
23
,
14
,
12
,
9
,
6
,
0
,
0
,
2
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
14
,
88
,
23
,
17
,
24
,
29
,
0
,
117
,
54
,
117
,
116
,
117
,
22
,
29
,
27
,
117
,
59
,
76
,
19
,
30
,
2
,
9
,
26
,
2
,
7
,
6
,
0
,
0
,
0
,
0
,
0
,
0
,
8
,
50
,
16
,
30
,
58
,
89
,
0
,
117
,
49
,
95
,
75
,
117
,
112
,
117
,
93
,
81
,
86
,
117
,
5
,
5
,
39
,
117
,
71
,
20
,
20
,
12
,
0
,
0
,
1
,
20
,
19
,
0
,
0
,
0
,
2
,
14
,
4
,
1
,
0
,
69
,
0
,
0
,
14
,
90
,
31
,
35
,
56
,
25
,
0
,
0
,
0
,
0
,
2
,
12
,
16
,
0
,
0
,
0
,
0
,
0
,
0
,
2
,
1
);
}
};
...
...
@@ -93,7 +95,7 @@ public class SIFTDescriptorExtractorTest extends OpenCVTestCase {
extractor
.
write
(
filename
);
String
truth
=
"<?xml version=\"1.0\"?>\n<opencv_storage>\n<
magnification>3.</magnification>\n<isNormalize>1</isNormalize>\n<recalculateAngles>1</recalculateAngles>\n<nOctaves>4</nOctaves>\n<nOctaveLayers>3</nOctaveLayers>\n<firstOctave>-1</firstOctave>\n<angleMode>0</angleMode
>\n</opencv_storage>\n"
;
String
truth
=
"<?xml version=\"1.0\"?>\n<opencv_storage>\n<
name>Feature2D.SIFT</name>\n<contrastThreshold>4.0000000000000001e-02</contrastThreshold>\n<edgeThreshold>10.</edgeThreshold>\n<nFeatures>0</nFeatures>\n<nOctaveLayers>3</nOctaveLayers>\n<sigma>1.6000000000000001e+00</sigma
>\n</opencv_storage>\n"
;
assertEquals
(
truth
,
readFile
(
filename
));
}
...
...
@@ -102,7 +104,7 @@ public class SIFTDescriptorExtractorTest extends OpenCVTestCase {
extractor
.
write
(
filename
);
String
truth
=
"%YAML:1.0\n
magnification: 3.\nisNormalize: 1\nrecalculateAngles: 1\nnOctaves: 4\nnOctaveLayers: 3\nfirstOctave: -1\nangleMode:
0\n"
;
String
truth
=
"%YAML:1.0\n
name: \"Feature2D.SIFT\"\ncontrastThreshold: 4.0000000000000001e-02\nedgeThreshold: 10.\nnFeatures: 0\nnOctaveLayers: 3\nsigma: 1.6000000000000001e+0
0\n"
;
assertEquals
(
truth
,
readFile
(
filename
));
}
...
...
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