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
f978ee61
Commit
f978ee61
authored
Oct 18, 2016
by
abratchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for #7510, #7511 and #7512
parent
78874c56
Hide whitespace changes
Inline
Side-by-side
Showing
54 changed files
with
89 additions
and
1696 deletions
+89
-1696
Calib3dTest.java
modules/calib3d/misc/java/test/Calib3dTest.java
+3
-1
BRIEFDescriptorExtractorTest.java
...atures2d/misc/java/test/BRIEFDescriptorExtractorTest.java
+3
-3
BruteForceDescriptorMatcherTest.java
...res2d/misc/java/test/BruteForceDescriptorMatcherTest.java
+5
-5
BruteForceHammingDescriptorMatcherTest.java
...isc/java/test/BruteForceHammingDescriptorMatcherTest.java
+3
-3
BruteForceHammingLUTDescriptorMatcherTest.java
.../java/test/BruteForceHammingLUTDescriptorMatcherTest.java
+3
-3
BruteForceL1DescriptorMatcherTest.java
...s2d/misc/java/test/BruteForceL1DescriptorMatcherTest.java
+5
-5
BruteForceSL2DescriptorMatcherTest.java
...2d/misc/java/test/BruteForceSL2DescriptorMatcherTest.java
+5
-5
DynamicDENSEFeatureDetectorTest.java
...res2d/misc/java/test/DynamicDENSEFeatureDetectorTest.java
+0
-39
DynamicFASTFeatureDetectorTest.java
...ures2d/misc/java/test/DynamicFASTFeatureDetectorTest.java
+0
-39
DynamicGFTTFeatureDetectorTest.java
...ures2d/misc/java/test/DynamicGFTTFeatureDetectorTest.java
+0
-39
DynamicHARRISFeatureDetectorTest.java
...es2d/misc/java/test/DynamicHARRISFeatureDetectorTest.java
+0
-39
DynamicMSERFeatureDetectorTest.java
...ures2d/misc/java/test/DynamicMSERFeatureDetectorTest.java
+0
-39
DynamicORBFeatureDetectorTest.java
...tures2d/misc/java/test/DynamicORBFeatureDetectorTest.java
+0
-39
DynamicSIFTFeatureDetectorTest.java
...ures2d/misc/java/test/DynamicSIFTFeatureDetectorTest.java
+0
-39
DynamicSIMPLEBLOBFeatureDetectorTest.java
.../misc/java/test/DynamicSIMPLEBLOBFeatureDetectorTest.java
+0
-39
DynamicSTARFeatureDetectorTest.java
...ures2d/misc/java/test/DynamicSTARFeatureDetectorTest.java
+0
-39
DynamicSURFFeatureDetectorTest.java
...ures2d/misc/java/test/DynamicSURFFeatureDetectorTest.java
+0
-39
FASTFeatureDetectorTest.java
...es/features2d/misc/java/test/FASTFeatureDetectorTest.java
+4
-4
Features2dTest.java
modules/features2d/misc/java/test/Features2dTest.java
+4
-4
FernGenericDescriptorMatcherTest.java
...es2d/misc/java/test/FernGenericDescriptorMatcherTest.java
+0
-127
FlannBasedDescriptorMatcherTest.java
...res2d/misc/java/test/FlannBasedDescriptorMatcherTest.java
+5
-8
GridDENSEFeatureDetectorTest.java
...atures2d/misc/java/test/GridDENSEFeatureDetectorTest.java
+0
-39
GridFASTFeatureDetectorTest.java
...eatures2d/misc/java/test/GridFASTFeatureDetectorTest.java
+0
-39
GridGFTTFeatureDetectorTest.java
...eatures2d/misc/java/test/GridGFTTFeatureDetectorTest.java
+0
-39
GridHARRISFeatureDetectorTest.java
...tures2d/misc/java/test/GridHARRISFeatureDetectorTest.java
+0
-39
GridMSERFeatureDetectorTest.java
...eatures2d/misc/java/test/GridMSERFeatureDetectorTest.java
+0
-39
GridORBFeatureDetectorTest.java
...features2d/misc/java/test/GridORBFeatureDetectorTest.java
+0
-39
GridSIFTFeatureDetectorTest.java
...eatures2d/misc/java/test/GridSIFTFeatureDetectorTest.java
+0
-39
GridSIMPLEBLOBFeatureDetectorTest.java
...s2d/misc/java/test/GridSIMPLEBLOBFeatureDetectorTest.java
+0
-39
GridSTARFeatureDetectorTest.java
...eatures2d/misc/java/test/GridSTARFeatureDetectorTest.java
+0
-39
GridSURFFeatureDetectorTest.java
...eatures2d/misc/java/test/GridSURFFeatureDetectorTest.java
+0
-39
ORBDescriptorExtractorTest.java
...features2d/misc/java/test/ORBDescriptorExtractorTest.java
+3
-3
OneWayGenericDescriptorMatcherTest.java
...2d/misc/java/test/OneWayGenericDescriptorMatcherTest.java
+0
-127
OpponentBRIEFDescriptorExtractorTest.java
.../misc/java/test/OpponentBRIEFDescriptorExtractorTest.java
+0
-39
OpponentORBDescriptorExtractorTest.java
...2d/misc/java/test/OpponentORBDescriptorExtractorTest.java
+0
-39
OpponentSIFTDescriptorExtractorTest.java
...d/misc/java/test/OpponentSIFTDescriptorExtractorTest.java
+0
-39
OpponentSURFDescriptorExtractorTest.java
...d/misc/java/test/OpponentSURFDescriptorExtractorTest.java
+0
-39
PyramidDENSEFeatureDetectorTest.java
...res2d/misc/java/test/PyramidDENSEFeatureDetectorTest.java
+0
-39
PyramidFASTFeatureDetectorTest.java
...ures2d/misc/java/test/PyramidFASTFeatureDetectorTest.java
+0
-39
PyramidGFTTFeatureDetectorTest.java
...ures2d/misc/java/test/PyramidGFTTFeatureDetectorTest.java
+0
-39
PyramidHARRISFeatureDetectorTest.java
...es2d/misc/java/test/PyramidHARRISFeatureDetectorTest.java
+0
-39
PyramidMSERFeatureDetectorTest.java
...ures2d/misc/java/test/PyramidMSERFeatureDetectorTest.java
+0
-39
PyramidORBFeatureDetectorTest.java
...tures2d/misc/java/test/PyramidORBFeatureDetectorTest.java
+0
-39
PyramidSIFTFeatureDetectorTest.java
...ures2d/misc/java/test/PyramidSIFTFeatureDetectorTest.java
+0
-39
PyramidSIMPLEBLOBFeatureDetectorTest.java
.../misc/java/test/PyramidSIMPLEBLOBFeatureDetectorTest.java
+0
-39
PyramidSTARFeatureDetectorTest.java
...ures2d/misc/java/test/PyramidSTARFeatureDetectorTest.java
+0
-39
PyramidSURFFeatureDetectorTest.java
...ures2d/misc/java/test/PyramidSURFFeatureDetectorTest.java
+0
-39
SIFTDescriptorExtractorTest.java
...eatures2d/misc/java/test/SIFTDescriptorExtractorTest.java
+3
-3
STARFeatureDetectorTest.java
...es/features2d/misc/java/test/STARFeatureDetectorTest.java
+4
-4
SURFDescriptorExtractorTest.java
...eatures2d/misc/java/test/SURFDescriptorExtractorTest.java
+4
-4
SURFFeatureDetectorTest.java
...es/features2d/misc/java/test/SURFFeatureDetectorTest.java
+4
-4
ImgprocTest.java
modules/imgproc/misc/java/test/ImgprocTest.java
+3
-3
OpenCVTestCase.java
...java/android_test/src/org/opencv/test/OpenCVTestCase.java
+14
-27
OpenCVTestCase.java
...es/java/pure_test/src/org/opencv/test/OpenCVTestCase.java
+14
-27
No files found.
modules/calib3d/misc/java/test/Calib3dTest.java
View file @
f978ee61
package
org
.
opencv
.
test
.
calib3d
;
package
org
.
opencv
.
test
.
calib3d
;
import
org.opencv.calib3d.Calib3d
;
import
org.opencv.calib3d.Calib3d
;
import
org.opencv.core.Core
;
import
org.opencv.core.CvType
;
import
org.opencv.core.CvType
;
import
org.opencv.core.Mat
;
import
org.opencv.core.Mat
;
import
org.opencv.core.MatOfDouble
;
import
org.opencv.core.MatOfDouble
;
...
@@ -237,6 +236,8 @@ public class Calib3dTest extends OpenCVTestCase {
...
@@ -237,6 +236,8 @@ public class Calib3dTest extends OpenCVTestCase {
}
}
public
void
testFindFundamentalMatListOfPointListOfPoint
()
{
public
void
testFindFundamentalMatListOfPointListOfPoint
()
{
fail
(
"Not yet implemented"
);
/*
int minFundamentalMatPoints = 8;
int minFundamentalMatPoints = 8;
MatOfPoint2f pts = new MatOfPoint2f();
MatOfPoint2f pts = new MatOfPoint2f();
...
@@ -253,6 +254,7 @@ public class Calib3dTest extends OpenCVTestCase {
...
@@ -253,6 +254,7 @@ public class Calib3dTest extends OpenCVTestCase {
truth = new Mat(3, 3, CvType.CV_64F);
truth = new Mat(3, 3, CvType.CV_64F);
truth.put(0, 0, 0, -0.577, 0.288, 0.577, 0, 0.288, -0.288, -0.288, 0);
truth.put(0, 0, 0, -0.577, 0.288, 0.577, 0, 0.288, -0.288, -0.288, 0);
assertMatEqual(truth, fm, EPS);
assertMatEqual(truth, fm, EPS);
*/
}
}
public
void
testFindFundamentalMatListOfPointListOfPointInt
()
{
public
void
testFindFundamentalMatListOfPointListOfPointInt
()
{
...
...
modules/features2d/misc/java/test/BRIEFDescriptorExtractorTest.java
View file @
f978ee61
...
@@ -27,7 +27,7 @@ public class BRIEFDescriptorExtractorTest extends OpenCVTestCase {
...
@@ -27,7 +27,7 @@ public class BRIEFDescriptorExtractorTest extends OpenCVTestCase {
@Override
@Override
protected
void
setUp
()
throws
Exception
{
protected
void
setUp
()
throws
Exception
{
super
.
setUp
();
super
.
setUp
();
extractor
=
create
AlgorythmInstance
(
XFEATURES2D_PACKAGE_NAME
+
"BriefDescriptorExtractor"
,
ALGORITHM_FACTORY_NAME
,
null
,
null
);
extractor
=
create
ClassInstance
(
XFEATURES2D
+
"BriefDescriptorExtractor"
,
DEFAULT_FACTORY
,
null
,
null
);
matSize
=
100
;
matSize
=
100
;
}
}
...
@@ -74,7 +74,7 @@ public class BRIEFDescriptorExtractorTest extends OpenCVTestCase {
...
@@ -74,7 +74,7 @@ public class BRIEFDescriptorExtractorTest extends OpenCVTestCase {
public
void
testRead
()
{
public
void
testRead
()
{
String
filename
=
OpenCVTestRunner
.
getTempFileName
(
"yml"
);
String
filename
=
OpenCVTestRunner
.
getTempFileName
(
"yml"
);
writeFile
(
filename
,
"%YAML
1.0\n---\ndescriptorSize: 64\n"
);
writeFile
(
filename
,
"%YAML
:
1.0\n---\ndescriptorSize: 64\n"
);
extractor
.
read
(
filename
);
extractor
.
read
(
filename
);
...
@@ -95,7 +95,7 @@ public class BRIEFDescriptorExtractorTest extends OpenCVTestCase {
...
@@ -95,7 +95,7 @@ public class BRIEFDescriptorExtractorTest extends OpenCVTestCase {
extractor
.
write
(
filename
);
extractor
.
write
(
filename
);
String
truth
=
"%YAML
1.0\n---\ndescriptorSize: 32\n"
;
String
truth
=
"%YAML
:
1.0\n---\ndescriptorSize: 32\n"
;
assertEquals
(
truth
,
readFile
(
filename
));
assertEquals
(
truth
,
readFile
(
filename
));
}
}
...
...
modules/features2d/misc/java/test/BruteForceDescriptorMatcherTest.java
View file @
f978ee61
...
@@ -37,8 +37,8 @@ public class BruteForceDescriptorMatcherTest extends OpenCVTestCase {
...
@@ -37,8 +37,8 @@ public class BruteForceDescriptorMatcherTest extends OpenCVTestCase {
MatOfKeyPoint
keypoints
=
new
MatOfKeyPoint
();
MatOfKeyPoint
keypoints
=
new
MatOfKeyPoint
();
Mat
descriptors
=
new
Mat
();
Mat
descriptors
=
new
Mat
();
Feature2D
detector
=
create
AlgorythmInstance
(
XFEATURES2D_PACKAGE_NAME
+
"SURF"
,
ALGORITHM_FACTORY_NAME
,
null
,
null
);
Feature2D
detector
=
create
ClassInstance
(
XFEATURES2D
+
"SURF"
,
DEFAULT_FACTORY
,
null
,
null
);
Feature2D
extractor
=
create
AlgorythmInstance
(
XFEATURES2D_PACKAGE_NAME
+
"SURF"
,
ALGORITHM_FACTORY_NAME
,
null
,
null
);
Feature2D
extractor
=
create
ClassInstance
(
XFEATURES2D
+
"SURF"
,
DEFAULT_FACTORY
,
null
,
null
);
setProperty
(
detector
,
"hessianThreshold"
,
"double"
,
8000
);
setProperty
(
detector
,
"hessianThreshold"
,
"double"
,
8000
);
setProperty
(
detector
,
"nOctaves"
,
"int"
,
3
);
setProperty
(
detector
,
"nOctaves"
,
"int"
,
3
);
...
@@ -64,7 +64,7 @@ public class BruteForceDescriptorMatcherTest extends OpenCVTestCase {
...
@@ -64,7 +64,7 @@ public class BruteForceDescriptorMatcherTest extends OpenCVTestCase {
MatOfKeyPoint
keypoints
=
new
MatOfKeyPoint
(
new
KeyPoint
(
50
,
50
,
16
,
0
,
20000
,
1
,
-
1
),
new
KeyPoint
(
42
,
42
,
16
,
160
,
10000
,
1
,
-
1
));
MatOfKeyPoint
keypoints
=
new
MatOfKeyPoint
(
new
KeyPoint
(
50
,
50
,
16
,
0
,
20000
,
1
,
-
1
),
new
KeyPoint
(
42
,
42
,
16
,
160
,
10000
,
1
,
-
1
));
Mat
descriptors
=
new
Mat
();
Mat
descriptors
=
new
Mat
();
Feature2D
extractor
=
create
AlgorythmInstance
(
XFEATURES2D_PACKAGE_NAME
+
"SURF"
,
ALGORITHM_FACTORY_NAME
,
null
,
null
);
Feature2D
extractor
=
create
ClassInstance
(
XFEATURES2D
+
"SURF"
,
DEFAULT_FACTORY
,
null
,
null
);
extractor
.
compute
(
img
,
keypoints
,
descriptors
);
extractor
.
compute
(
img
,
keypoints
,
descriptors
);
...
@@ -272,7 +272,7 @@ public class BruteForceDescriptorMatcherTest extends OpenCVTestCase {
...
@@ -272,7 +272,7 @@ public class BruteForceDescriptorMatcherTest extends OpenCVTestCase {
public
void
testRead
()
{
public
void
testRead
()
{
String
filename
=
OpenCVTestRunner
.
getTempFileName
(
"yml"
);
String
filename
=
OpenCVTestRunner
.
getTempFileName
(
"yml"
);
writeFile
(
filename
,
"%YAML
1.0\n---\n"
);
writeFile
(
filename
,
"%YAML
:
1.0\n---\n"
);
matcher
.
read
(
filename
);
matcher
.
read
(
filename
);
assertTrue
(
true
);
// BruteforceMatcher has no settings
assertTrue
(
true
);
// BruteforceMatcher has no settings
...
@@ -287,7 +287,7 @@ public class BruteForceDescriptorMatcherTest extends OpenCVTestCase {
...
@@ -287,7 +287,7 @@ public class BruteForceDescriptorMatcherTest extends OpenCVTestCase {
matcher
.
write
(
filename
);
matcher
.
write
(
filename
);
String
truth
=
"%YAML
1.0\n---\n"
;
String
truth
=
"%YAML
:
1.0\n---\n"
;
assertEquals
(
truth
,
readFile
(
filename
));
assertEquals
(
truth
,
readFile
(
filename
));
}
}
...
...
modules/features2d/misc/java/test/BruteForceHammingDescriptorMatcherTest.java
View file @
f978ee61
...
@@ -47,7 +47,7 @@ public class BruteForceHammingDescriptorMatcherTest extends OpenCVTestCase {
...
@@ -47,7 +47,7 @@ public class BruteForceHammingDescriptorMatcherTest extends OpenCVTestCase {
Mat
descriptors
=
new
Mat
();
Mat
descriptors
=
new
Mat
();
FeatureDetector
detector
=
FeatureDetector
.
create
(
FeatureDetector
.
FAST
);
FeatureDetector
detector
=
FeatureDetector
.
create
(
FeatureDetector
.
FAST
);
Feature2D
extractor
=
create
AlgorythmInstance
(
XFEATURES2D_PACKAGE_NAME
+
"BriefDescriptorExtractor"
,
ALGORITHM_FACTORY_NAME
,
null
,
null
);
Feature2D
extractor
=
create
ClassInstance
(
XFEATURES2D
+
"BriefDescriptorExtractor"
,
DEFAULT_FACTORY
,
null
,
null
);
detector
.
detect
(
img
,
keypoints
);
detector
.
detect
(
img
,
keypoints
);
extractor
.
compute
(
img
,
keypoints
,
descriptors
);
extractor
.
compute
(
img
,
keypoints
,
descriptors
);
...
@@ -240,7 +240,7 @@ public class BruteForceHammingDescriptorMatcherTest extends OpenCVTestCase {
...
@@ -240,7 +240,7 @@ public class BruteForceHammingDescriptorMatcherTest extends OpenCVTestCase {
public
void
testRead
()
{
public
void
testRead
()
{
String
filename
=
OpenCVTestRunner
.
getTempFileName
(
"yml"
);
String
filename
=
OpenCVTestRunner
.
getTempFileName
(
"yml"
);
writeFile
(
filename
,
"%YAML
1.0\n---\n"
);
writeFile
(
filename
,
"%YAML
:
1.0\n---\n"
);
matcher
.
read
(
filename
);
matcher
.
read
(
filename
);
assertTrue
(
true
);
// BruteforceMatcher has no settings
assertTrue
(
true
);
// BruteforceMatcher has no settings
...
@@ -255,7 +255,7 @@ public class BruteForceHammingDescriptorMatcherTest extends OpenCVTestCase {
...
@@ -255,7 +255,7 @@ public class BruteForceHammingDescriptorMatcherTest extends OpenCVTestCase {
matcher
.
write
(
filename
);
matcher
.
write
(
filename
);
String
truth
=
"%YAML
1.0\n---\n"
;
String
truth
=
"%YAML
:
1.0\n---\n"
;
assertEquals
(
truth
,
readFile
(
filename
));
assertEquals
(
truth
,
readFile
(
filename
));
}
}
...
...
modules/features2d/misc/java/test/BruteForceHammingLUTDescriptorMatcherTest.java
View file @
f978ee61
...
@@ -46,7 +46,7 @@ public class BruteForceHammingLUTDescriptorMatcherTest extends OpenCVTestCase {
...
@@ -46,7 +46,7 @@ public class BruteForceHammingLUTDescriptorMatcherTest extends OpenCVTestCase {
Mat
descriptors
=
new
Mat
();
Mat
descriptors
=
new
Mat
();
FeatureDetector
detector
=
FeatureDetector
.
create
(
FeatureDetector
.
FAST
);
FeatureDetector
detector
=
FeatureDetector
.
create
(
FeatureDetector
.
FAST
);
Feature2D
extractor
=
create
AlgorythmInstance
(
XFEATURES2D_PACKAGE_NAME
+
"BriefDescriptorExtractor"
,
ALGORITHM_FACTORY_NAME
,
null
,
null
);
Feature2D
extractor
=
create
ClassInstance
(
XFEATURES2D
+
"BriefDescriptorExtractor"
,
DEFAULT_FACTORY
,
null
,
null
);
detector
.
detect
(
img
,
keypoints
);
detector
.
detect
(
img
,
keypoints
);
extractor
.
compute
(
img
,
keypoints
,
descriptors
);
extractor
.
compute
(
img
,
keypoints
,
descriptors
);
...
@@ -235,7 +235,7 @@ public class BruteForceHammingLUTDescriptorMatcherTest extends OpenCVTestCase {
...
@@ -235,7 +235,7 @@ public class BruteForceHammingLUTDescriptorMatcherTest extends OpenCVTestCase {
public
void
testRead
()
{
public
void
testRead
()
{
String
filename
=
OpenCVTestRunner
.
getTempFileName
(
"yml"
);
String
filename
=
OpenCVTestRunner
.
getTempFileName
(
"yml"
);
writeFile
(
filename
,
"%YAML
1.0\n---\n"
);
writeFile
(
filename
,
"%YAML
:
1.0\n---\n"
);
matcher
.
read
(
filename
);
matcher
.
read
(
filename
);
assertTrue
(
true
);
// BruteforceMatcher has no settings
assertTrue
(
true
);
// BruteforceMatcher has no settings
...
@@ -250,7 +250,7 @@ public class BruteForceHammingLUTDescriptorMatcherTest extends OpenCVTestCase {
...
@@ -250,7 +250,7 @@ public class BruteForceHammingLUTDescriptorMatcherTest extends OpenCVTestCase {
matcher
.
write
(
filename
);
matcher
.
write
(
filename
);
String
truth
=
"%YAML
1.0\n---\n"
;
String
truth
=
"%YAML
:
1.0\n---\n"
;
assertEquals
(
truth
,
readFile
(
filename
));
assertEquals
(
truth
,
readFile
(
filename
));
}
}
...
...
modules/features2d/misc/java/test/BruteForceL1DescriptorMatcherTest.java
View file @
f978ee61
...
@@ -36,8 +36,8 @@ public class BruteForceL1DescriptorMatcherTest extends OpenCVTestCase {
...
@@ -36,8 +36,8 @@ public class BruteForceL1DescriptorMatcherTest extends OpenCVTestCase {
MatOfKeyPoint
keypoints
=
new
MatOfKeyPoint
();
MatOfKeyPoint
keypoints
=
new
MatOfKeyPoint
();
Mat
descriptors
=
new
Mat
();
Mat
descriptors
=
new
Mat
();
Feature2D
detector
=
create
AlgorythmInstance
(
XFEATURES2D_PACKAGE_NAME
+
"SURF"
,
ALGORITHM_FACTORY_NAME
,
null
,
null
);
Feature2D
detector
=
create
ClassInstance
(
XFEATURES2D
+
"SURF"
,
DEFAULT_FACTORY
,
null
,
null
);
Feature2D
extractor
=
create
AlgorythmInstance
(
XFEATURES2D_PACKAGE_NAME
+
"SURF"
,
ALGORITHM_FACTORY_NAME
,
null
,
null
);
Feature2D
extractor
=
create
ClassInstance
(
XFEATURES2D
+
"SURF"
,
DEFAULT_FACTORY
,
null
,
null
);
setProperty
(
detector
,
"extended"
,
"boolean"
,
true
);
setProperty
(
detector
,
"extended"
,
"boolean"
,
true
);
setProperty
(
detector
,
"hessianThreshold"
,
"double"
,
8000
);
setProperty
(
detector
,
"hessianThreshold"
,
"double"
,
8000
);
...
@@ -64,7 +64,7 @@ public class BruteForceL1DescriptorMatcherTest extends OpenCVTestCase {
...
@@ -64,7 +64,7 @@ public class BruteForceL1DescriptorMatcherTest extends OpenCVTestCase {
MatOfKeyPoint
keypoints
=
new
MatOfKeyPoint
(
new
KeyPoint
(
50
,
50
,
16
,
0
,
20000
,
1
,
-
1
),
new
KeyPoint
(
42
,
42
,
16
,
160
,
10000
,
1
,
-
1
));
MatOfKeyPoint
keypoints
=
new
MatOfKeyPoint
(
new
KeyPoint
(
50
,
50
,
16
,
0
,
20000
,
1
,
-
1
),
new
KeyPoint
(
42
,
42
,
16
,
160
,
10000
,
1
,
-
1
));
Mat
descriptors
=
new
Mat
();
Mat
descriptors
=
new
Mat
();
Feature2D
extractor
=
create
AlgorythmInstance
(
XFEATURES2D_PACKAGE_NAME
+
"SURF"
,
ALGORITHM_FACTORY_NAME
,
null
,
null
);
Feature2D
extractor
=
create
ClassInstance
(
XFEATURES2D
+
"SURF"
,
DEFAULT_FACTORY
,
null
,
null
);
extractor
.
compute
(
img
,
keypoints
,
descriptors
);
extractor
.
compute
(
img
,
keypoints
,
descriptors
);
...
@@ -246,7 +246,7 @@ public class BruteForceL1DescriptorMatcherTest extends OpenCVTestCase {
...
@@ -246,7 +246,7 @@ public class BruteForceL1DescriptorMatcherTest extends OpenCVTestCase {
public
void
testRead
()
{
public
void
testRead
()
{
String
filename
=
OpenCVTestRunner
.
getTempFileName
(
"yml"
);
String
filename
=
OpenCVTestRunner
.
getTempFileName
(
"yml"
);
writeFile
(
filename
,
"%YAML
1.0\n---\n"
);
writeFile
(
filename
,
"%YAML
:
1.0\n---\n"
);
matcher
.
read
(
filename
);
matcher
.
read
(
filename
);
assertTrue
(
true
);
// BruteforceMatcher has no settings
assertTrue
(
true
);
// BruteforceMatcher has no settings
...
@@ -261,7 +261,7 @@ public class BruteForceL1DescriptorMatcherTest extends OpenCVTestCase {
...
@@ -261,7 +261,7 @@ public class BruteForceL1DescriptorMatcherTest extends OpenCVTestCase {
matcher
.
write
(
filename
);
matcher
.
write
(
filename
);
String
truth
=
"%YAML
1.0\n---\n"
;
String
truth
=
"%YAML
:
1.0\n---\n"
;
assertEquals
(
truth
,
readFile
(
filename
));
assertEquals
(
truth
,
readFile
(
filename
));
}
}
...
...
modules/features2d/misc/java/test/BruteForceSL2DescriptorMatcherTest.java
View file @
f978ee61
...
@@ -42,8 +42,8 @@ public class BruteForceSL2DescriptorMatcherTest extends OpenCVTestCase {
...
@@ -42,8 +42,8 @@ public class BruteForceSL2DescriptorMatcherTest extends OpenCVTestCase {
MatOfKeyPoint
keypoints
=
new
MatOfKeyPoint
();
MatOfKeyPoint
keypoints
=
new
MatOfKeyPoint
();
Mat
descriptors
=
new
Mat
();
Mat
descriptors
=
new
Mat
();
Feature2D
detector
=
create
AlgorythmInstance
(
XFEATURES2D_PACKAGE_NAME
+
"SURF"
,
ALGORITHM_FACTORY_NAME
,
null
,
null
);
Feature2D
detector
=
create
ClassInstance
(
XFEATURES2D
+
"SURF"
,
DEFAULT_FACTORY
,
null
,
null
);
Feature2D
extractor
=
create
AlgorythmInstance
(
XFEATURES2D_PACKAGE_NAME
+
"SURF"
,
ALGORITHM_FACTORY_NAME
,
null
,
null
);
Feature2D
extractor
=
create
ClassInstance
(
XFEATURES2D
+
"SURF"
,
DEFAULT_FACTORY
,
null
,
null
);
setProperty
(
detector
,
"hessianThreshold"
,
"double"
,
8000
);
setProperty
(
detector
,
"hessianThreshold"
,
"double"
,
8000
);
setProperty
(
detector
,
"nOctaves"
,
"int"
,
3
);
setProperty
(
detector
,
"nOctaves"
,
"int"
,
3
);
...
@@ -69,7 +69,7 @@ public class BruteForceSL2DescriptorMatcherTest extends OpenCVTestCase {
...
@@ -69,7 +69,7 @@ public class BruteForceSL2DescriptorMatcherTest extends OpenCVTestCase {
MatOfKeyPoint
keypoints
=
new
MatOfKeyPoint
(
new
KeyPoint
(
50
,
50
,
16
,
0
,
20000
,
1
,
-
1
),
new
KeyPoint
(
42
,
42
,
16
,
160
,
10000
,
1
,
-
1
));
MatOfKeyPoint
keypoints
=
new
MatOfKeyPoint
(
new
KeyPoint
(
50
,
50
,
16
,
0
,
20000
,
1
,
-
1
),
new
KeyPoint
(
42
,
42
,
16
,
160
,
10000
,
1
,
-
1
));
Mat
descriptors
=
new
Mat
();
Mat
descriptors
=
new
Mat
();
Feature2D
extractor
=
create
AlgorythmInstance
(
XFEATURES2D_PACKAGE_NAME
+
"SURF"
,
ALGORITHM_FACTORY_NAME
,
null
,
null
);
Feature2D
extractor
=
create
ClassInstance
(
XFEATURES2D
+
"SURF"
,
DEFAULT_FACTORY
,
null
,
null
);
extractor
.
compute
(
img
,
keypoints
,
descriptors
);
extractor
.
compute
(
img
,
keypoints
,
descriptors
);
...
@@ -258,7 +258,7 @@ public class BruteForceSL2DescriptorMatcherTest extends OpenCVTestCase {
...
@@ -258,7 +258,7 @@ public class BruteForceSL2DescriptorMatcherTest extends OpenCVTestCase {
public
void
testRead
()
{
public
void
testRead
()
{
String
filename
=
OpenCVTestRunner
.
getTempFileName
(
"yml"
);
String
filename
=
OpenCVTestRunner
.
getTempFileName
(
"yml"
);
writeFile
(
filename
,
"%YAML
1.0\n---\n"
);
writeFile
(
filename
,
"%YAML
:
1.0\n---\n"
);
matcher
.
read
(
filename
);
matcher
.
read
(
filename
);
assertTrue
(
true
);
// BruteforceMatcher has no settings
assertTrue
(
true
);
// BruteforceMatcher has no settings
...
@@ -273,7 +273,7 @@ public class BruteForceSL2DescriptorMatcherTest extends OpenCVTestCase {
...
@@ -273,7 +273,7 @@ public class BruteForceSL2DescriptorMatcherTest extends OpenCVTestCase {
matcher
.
write
(
filename
);
matcher
.
write
(
filename
);
String
truth
=
"%YAML
1.0\n---\n"
;
String
truth
=
"%YAML
:
1.0\n---\n"
;
assertEquals
(
truth
,
readFile
(
filename
));
assertEquals
(
truth
,
readFile
(
filename
));
}
}
...
...
modules/features2d/misc/java/test/DynamicDENSEFeatureDetectorTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
DynamicDENSEFeatureDetectorTest
extends
OpenCVTestCase
{
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPointListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPointMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/DynamicFASTFeatureDetectorTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
DynamicFASTFeatureDetectorTest
extends
OpenCVTestCase
{
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPointListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPointMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/DynamicGFTTFeatureDetectorTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
DynamicGFTTFeatureDetectorTest
extends
OpenCVTestCase
{
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPointListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPointMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/DynamicHARRISFeatureDetectorTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
DynamicHARRISFeatureDetectorTest
extends
OpenCVTestCase
{
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPointListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPointMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/DynamicMSERFeatureDetectorTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
DynamicMSERFeatureDetectorTest
extends
OpenCVTestCase
{
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPointListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPointMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/DynamicORBFeatureDetectorTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
DynamicORBFeatureDetectorTest
extends
OpenCVTestCase
{
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPointListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPointMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/DynamicSIFTFeatureDetectorTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
DynamicSIFTFeatureDetectorTest
extends
OpenCVTestCase
{
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPointListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPointMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/DynamicSIMPLEBLOBFeatureDetectorTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
DynamicSIMPLEBLOBFeatureDetectorTest
extends
OpenCVTestCase
{
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPointListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPointMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/DynamicSTARFeatureDetectorTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
DynamicSTARFeatureDetectorTest
extends
OpenCVTestCase
{
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPointListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPointMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/DynamicSURFFeatureDetectorTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
DynamicSURFFeatureDetectorTest
extends
OpenCVTestCase
{
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPointListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPointMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/FASTFeatureDetectorTest.java
View file @
f978ee61
...
@@ -83,14 +83,14 @@ public class FASTFeatureDetectorTest extends OpenCVTestCase {
...
@@ -83,14 +83,14 @@ public class FASTFeatureDetectorTest extends OpenCVTestCase {
public
void
testRead
()
{
public
void
testRead
()
{
String
filename
=
OpenCVTestRunner
.
getTempFileName
(
"yml"
);
String
filename
=
OpenCVTestRunner
.
getTempFileName
(
"yml"
);
writeFile
(
filename
,
"%YAML
1.0\n---\nthreshold: 130\nnonmaxSuppression: 1\n"
);
writeFile
(
filename
,
"%YAML
:
1.0\n---\nthreshold: 130\nnonmaxSuppression: 1\n"
);
detector
.
read
(
filename
);
detector
.
read
(
filename
);
MatOfKeyPoint
keypoints1
=
new
MatOfKeyPoint
();
MatOfKeyPoint
keypoints1
=
new
MatOfKeyPoint
();
detector
.
detect
(
grayChess
,
keypoints1
);
detector
.
detect
(
grayChess
,
keypoints1
);
writeFile
(
filename
,
"%YAML
1.0\n---\nthreshold: 150\nnonmaxSuppression: 1\n"
);
writeFile
(
filename
,
"%YAML
:
1.0\n---\nthreshold: 150\nnonmaxSuppression: 1\n"
);
detector
.
read
(
filename
);
detector
.
read
(
filename
);
MatOfKeyPoint
keypoints2
=
new
MatOfKeyPoint
();
MatOfKeyPoint
keypoints2
=
new
MatOfKeyPoint
();
...
@@ -139,8 +139,8 @@ public class FASTFeatureDetectorTest extends OpenCVTestCase {
...
@@ -139,8 +139,8 @@ public class FASTFeatureDetectorTest extends OpenCVTestCase {
detector
.
write
(
filename
);
detector
.
write
(
filename
);
// String truth = "%YAML
1.0\n---\nname: \"Feature2D.FAST\"\nnonmaxSuppression: 1\nthreshold: 10\ntype: 2\n";
// String truth = "%YAML
:
1.0\n---\nname: \"Feature2D.FAST\"\nnonmaxSuppression: 1\nthreshold: 10\ntype: 2\n";
String
truth
=
"%YAML
1.0\n---\n"
;
String
truth
=
"%YAML
:
1.0\n---\n"
;
String
data
=
readFile
(
filename
);
String
data
=
readFile
(
filename
);
//Log.d("qqq", "\"" + data + "\"");
//Log.d("qqq", "\"" + data + "\"");
...
...
modules/features2d/misc/java/test/Features2dTest.java
View file @
f978ee61
...
@@ -77,11 +77,11 @@ public class Features2dTest extends OpenCVTestCase {
...
@@ -77,11 +77,11 @@ public class Features2dTest extends OpenCVTestCase {
public
void
testPTOD
()
public
void
testPTOD
()
{
{
String
detectorCfg
=
"%YAML
1.0\n---\nhessianThreshold: 4000.\noctaves: 3\noctaveLayers: 4\nupright: 0\n"
;
String
detectorCfg
=
"%YAML
:
1.0\n---\nhessianThreshold: 4000.\noctaves: 3\noctaveLayers: 4\nupright: 0\n"
;
String
extractorCfg
=
"%YAML
1.0\n---\nnOctaves: 4\nnOctaveLayers: 2\nextended: 0\nupright: 0\n"
;
String
extractorCfg
=
"%YAML
:
1.0\n---\nnOctaves: 4\nnOctaveLayers: 2\nextended: 0\nupright: 0\n"
;
Feature2D
detector
=
create
AlgorythmInstance
(
XFEATURES2D_PACKAGE_NAME
+
"SURF"
,
ALGORITHM_FACTORY_NAME
,
null
,
null
);
Feature2D
detector
=
create
ClassInstance
(
XFEATURES2D
+
"SURF"
,
DEFAULT_FACTORY
,
null
,
null
);
Feature2D
extractor
=
create
AlgorythmInstance
(
XFEATURES2D_PACKAGE_NAME
+
"SURF"
,
ALGORITHM_FACTORY_NAME
,
null
,
null
);
Feature2D
extractor
=
create
ClassInstance
(
XFEATURES2D
+
"SURF"
,
DEFAULT_FACTORY
,
null
,
null
);
DescriptorMatcher
matcher
=
DescriptorMatcher
.
create
(
DescriptorMatcher
.
BRUTEFORCE
);
DescriptorMatcher
matcher
=
DescriptorMatcher
.
create
(
DescriptorMatcher
.
BRUTEFORCE
);
String
detectorCfgFile
=
OpenCVTestRunner
.
getTempFileName
(
"yml"
);
String
detectorCfgFile
=
OpenCVTestRunner
.
getTempFileName
(
"yml"
);
...
...
modules/features2d/misc/java/test/FernGenericDescriptorMatcherTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
FernGenericDescriptorMatcherTest
extends
OpenCVTestCase
{
public
void
testAdd
()
{
fail
(
"Not yet implemented"
);
}
public
void
testClassifyMatListOfKeyPointMatListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testClassifyMatListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testClear
()
{
fail
(
"Not yet implemented"
);
}
public
void
testCloneBoolean
()
{
fail
(
"Not yet implemented"
);
}
public
void
testClone
()
{
fail
(
"Not yet implemented"
);
}
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testGetTrainImages
()
{
fail
(
"Not yet implemented"
);
}
public
void
testGetTrainKeypoints
()
{
fail
(
"Not yet implemented"
);
}
public
void
testIsMaskSupported
()
{
fail
(
"Not yet implemented"
);
}
public
void
testKnnMatchMatListOfKeyPointMatListOfKeyPointListOfListOfDMatchIntMatBoolean
()
{
fail
(
"Not yet implemented"
);
}
public
void
testKnnMatchMatListOfKeyPointMatListOfKeyPointListOfListOfDMatchIntMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testKnnMatchMatListOfKeyPointMatListOfKeyPointListOfListOfDMatchInt
()
{
fail
(
"Not yet implemented"
);
}
public
void
testKnnMatchMatListOfKeyPointListOfListOfDMatchIntListOfMatBoolean
()
{
fail
(
"Not yet implemented"
);
}
public
void
testKnnMatchMatListOfKeyPointListOfListOfDMatchIntListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testKnnMatchMatListOfKeyPointListOfListOfDMatchInt
()
{
fail
(
"Not yet implemented"
);
}
public
void
testMatchMatListOfKeyPointMatListOfKeyPointListOfDMatchMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testMatchMatListOfKeyPointMatListOfKeyPointListOfDMatch
()
{
fail
(
"Not yet implemented"
);
}
public
void
testMatchMatListOfKeyPointListOfDMatchListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testMatchMatListOfKeyPointListOfDMatch
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRadiusMatchMatListOfKeyPointMatListOfKeyPointListOfListOfDMatchFloatMatBoolean
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRadiusMatchMatListOfKeyPointMatListOfKeyPointListOfListOfDMatchFloatMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRadiusMatchMatListOfKeyPointMatListOfKeyPointListOfListOfDMatchFloat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRadiusMatchMatListOfKeyPointListOfListOfDMatchFloatListOfMatBoolean
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRadiusMatchMatListOfKeyPointListOfListOfDMatchFloatListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRadiusMatchMatListOfKeyPointListOfListOfDMatchFloat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testTrain
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/FlannBasedDescriptorMatcherTest.java
View file @
f978ee61
...
@@ -3,7 +3,6 @@ package org.opencv.test.features2d;
...
@@ -3,7 +3,6 @@ package org.opencv.test.features2d;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.List
;
import
org.opencv.core.Core
;
import
org.opencv.core.CvException
;
import
org.opencv.core.CvException
;
import
org.opencv.core.CvType
;
import
org.opencv.core.CvType
;
import
org.opencv.core.Mat
;
import
org.opencv.core.Mat
;
...
@@ -12,9 +11,7 @@ import org.opencv.core.MatOfKeyPoint;
...
@@ -12,9 +11,7 @@ import org.opencv.core.MatOfKeyPoint;
import
org.opencv.core.Point
;
import
org.opencv.core.Point
;
import
org.opencv.core.Scalar
;
import
org.opencv.core.Scalar
;
import
org.opencv.core.DMatch
;
import
org.opencv.core.DMatch
;
import
org.opencv.features2d.DescriptorExtractor
;
import
org.opencv.features2d.DescriptorMatcher
;
import
org.opencv.features2d.DescriptorMatcher
;
import
org.opencv.features2d.FeatureDetector
;
import
org.opencv.core.KeyPoint
;
import
org.opencv.core.KeyPoint
;
import
org.opencv.test.OpenCVTestCase
;
import
org.opencv.test.OpenCVTestCase
;
import
org.opencv.test.OpenCVTestRunner
;
import
org.opencv.test.OpenCVTestRunner
;
...
@@ -49,7 +46,7 @@ public class FlannBasedDescriptorMatcherTest extends OpenCVTestCase {
...
@@ -49,7 +46,7 @@ public class FlannBasedDescriptorMatcherTest extends OpenCVTestCase {
+
" <type>15</type>\n"
+
" <type>15</type>\n"
+
" <value>1</value></_></searchParams>\n"
+
" <value>1</value></_></searchParams>\n"
+
"</opencv_storage>\n"
;
+
"</opencv_storage>\n"
;
static
final
String
ymlParamsDefault
=
"%YAML
1.0\n---\n"
static
final
String
ymlParamsDefault
=
"%YAML
:
1.0\n---\n"
+
"format: 3\n"
+
"format: 3\n"
+
"indexParams:\n"
+
"indexParams:\n"
+
" -\n"
+
" -\n"
...
@@ -73,7 +70,7 @@ public class FlannBasedDescriptorMatcherTest extends OpenCVTestCase {
...
@@ -73,7 +70,7 @@ public class FlannBasedDescriptorMatcherTest extends OpenCVTestCase {
+
" name: sorted\n"
+
" name: sorted\n"
+
" type: 15\n"
+
" type: 15\n"
+
" value: 1\n"
;
+
" value: 1\n"
;
static
final
String
ymlParamsModified
=
"%YAML
1.0\n---\n"
static
final
String
ymlParamsModified
=
"%YAML
:
1.0\n---\n"
+
"format: 3\n"
+
"format: 3\n"
+
"indexParams:\n"
+
"indexParams:\n"
+
" -\n"
+
" -\n"
...
@@ -117,8 +114,8 @@ public class FlannBasedDescriptorMatcherTest extends OpenCVTestCase {
...
@@ -117,8 +114,8 @@ public class FlannBasedDescriptorMatcherTest extends OpenCVTestCase {
MatOfKeyPoint
keypoints
=
new
MatOfKeyPoint
();
MatOfKeyPoint
keypoints
=
new
MatOfKeyPoint
();
Mat
descriptors
=
new
Mat
();
Mat
descriptors
=
new
Mat
();
Feature2D
detector
=
create
AlgorythmInstance
(
XFEATURES2D_PACKAGE_NAME
+
"SURF"
,
ALGORITHM_FACTORY_NAME
,
null
,
null
);
Feature2D
detector
=
create
ClassInstance
(
XFEATURES2D
+
"SURF"
,
DEFAULT_FACTORY
,
null
,
null
);
Feature2D
extractor
=
create
AlgorythmInstance
(
XFEATURES2D_PACKAGE_NAME
+
"SURF"
,
ALGORITHM_FACTORY_NAME
,
null
,
null
);
Feature2D
extractor
=
create
ClassInstance
(
XFEATURES2D
+
"SURF"
,
DEFAULT_FACTORY
,
null
,
null
);
setProperty
(
detector
,
"hessianThreshold"
,
"double"
,
8000
);
setProperty
(
detector
,
"hessianThreshold"
,
"double"
,
8000
);
setProperty
(
detector
,
"nOctaves"
,
"int"
,
3
);
setProperty
(
detector
,
"nOctaves"
,
"int"
,
3
);
...
@@ -143,7 +140,7 @@ public class FlannBasedDescriptorMatcherTest extends OpenCVTestCase {
...
@@ -143,7 +140,7 @@ public class FlannBasedDescriptorMatcherTest extends OpenCVTestCase {
MatOfKeyPoint
keypoints
=
new
MatOfKeyPoint
(
new
KeyPoint
(
50
,
50
,
16
,
0
,
20000
,
1
,
-
1
),
new
KeyPoint
(
42
,
42
,
16
,
160
,
10000
,
1
,
-
1
));
MatOfKeyPoint
keypoints
=
new
MatOfKeyPoint
(
new
KeyPoint
(
50
,
50
,
16
,
0
,
20000
,
1
,
-
1
),
new
KeyPoint
(
42
,
42
,
16
,
160
,
10000
,
1
,
-
1
));
Mat
descriptors
=
new
Mat
();
Mat
descriptors
=
new
Mat
();
Feature2D
extractor
=
create
AlgorythmInstance
(
XFEATURES2D_PACKAGE_NAME
+
"SURF"
,
ALGORITHM_FACTORY_NAME
,
null
,
null
);
Feature2D
extractor
=
create
ClassInstance
(
XFEATURES2D
+
"SURF"
,
DEFAULT_FACTORY
,
null
,
null
);
extractor
.
compute
(
img
,
keypoints
,
descriptors
);
extractor
.
compute
(
img
,
keypoints
,
descriptors
);
...
...
modules/features2d/misc/java/test/GridDENSEFeatureDetectorTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
GridDENSEFeatureDetectorTest
extends
OpenCVTestCase
{
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPointListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPointMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/GridFASTFeatureDetectorTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
GridFASTFeatureDetectorTest
extends
OpenCVTestCase
{
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPointListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPointMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/GridGFTTFeatureDetectorTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
GridGFTTFeatureDetectorTest
extends
OpenCVTestCase
{
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPointListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPointMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/GridHARRISFeatureDetectorTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
GridHARRISFeatureDetectorTest
extends
OpenCVTestCase
{
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPointListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPointMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/GridMSERFeatureDetectorTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
GridMSERFeatureDetectorTest
extends
OpenCVTestCase
{
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPointListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPointMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/GridORBFeatureDetectorTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
GridORBFeatureDetectorTest
extends
OpenCVTestCase
{
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPointListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPointMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/GridSIFTFeatureDetectorTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
GridSIFTFeatureDetectorTest
extends
OpenCVTestCase
{
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPointListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPointMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/GridSIMPLEBLOBFeatureDetectorTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
GridSIMPLEBLOBFeatureDetectorTest
extends
OpenCVTestCase
{
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPointListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPointMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/GridSTARFeatureDetectorTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
GridSTARFeatureDetectorTest
extends
OpenCVTestCase
{
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPointListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPointMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/GridSURFFeatureDetectorTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
GridSURFFeatureDetectorTest
extends
OpenCVTestCase
{
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPointListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPointMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/ORBDescriptorExtractorTest.java
View file @
f978ee61
...
@@ -83,7 +83,7 @@ public class ORBDescriptorExtractorTest extends OpenCVTestCase {
...
@@ -83,7 +83,7 @@ public class ORBDescriptorExtractorTest extends OpenCVTestCase {
Mat
descriptors
=
new
Mat
();
Mat
descriptors
=
new
Mat
();
// String filename = OpenCVTestRunner.getTempFileName("yml");
// String filename = OpenCVTestRunner.getTempFileName("yml");
// writeFile(filename, "%YAML
1.0\n---\nscaleFactor: 1.1\nnLevels: 3\nfirstLevel: 0\nedgeThreshold: 31\npatchSize: 31\n");
// writeFile(filename, "%YAML
:
1.0\n---\nscaleFactor: 1.1\nnLevels: 3\nfirstLevel: 0\nedgeThreshold: 31\npatchSize: 31\n");
// extractor.read(filename);
// extractor.read(filename);
extractor
=
ORB
.
create
(
500
,
1.1f
,
3
,
31
,
0
,
2
,
ORB
.
HARRIS_SCORE
,
31
,
20
);
extractor
=
ORB
.
create
(
500
,
1.1f
,
3
,
31
,
0
,
2
,
ORB
.
HARRIS_SCORE
,
31
,
20
);
...
@@ -115,8 +115,8 @@ public class ORBDescriptorExtractorTest extends OpenCVTestCase {
...
@@ -115,8 +115,8 @@ public class ORBDescriptorExtractorTest extends OpenCVTestCase {
extractor
.
write
(
filename
);
extractor
.
write
(
filename
);
// String truth = "%YAML
1.0\n---\nname: \"Feature2D.ORB\"\nWTA_K: 2\nedgeThreshold: 31\nfirstLevel: 0\nnFeatures: 500\nnLevels: 8\npatchSize: 31\nscaleFactor: 1.2000000476837158e+00\nscoreType: 0\n";
// String truth = "%YAML
:
1.0\n---\nname: \"Feature2D.ORB\"\nWTA_K: 2\nedgeThreshold: 31\nfirstLevel: 0\nnFeatures: 500\nnLevels: 8\npatchSize: 31\nscaleFactor: 1.2000000476837158e+00\nscoreType: 0\n";
String
truth
=
"%YAML
1.0\n---\n"
;
String
truth
=
"%YAML
:
1.0\n---\n"
;
String
actual
=
readFile
(
filename
);
String
actual
=
readFile
(
filename
);
actual
=
actual
.
replaceAll
(
"e\\+000"
,
"e+00"
);
// NOTE: workaround for different platforms double representation
actual
=
actual
.
replaceAll
(
"e\\+000"
,
"e+00"
);
// NOTE: workaround for different platforms double representation
assertEquals
(
truth
,
actual
);
assertEquals
(
truth
,
actual
);
...
...
modules/features2d/misc/java/test/OneWayGenericDescriptorMatcherTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
OneWayGenericDescriptorMatcherTest
extends
OpenCVTestCase
{
public
void
testAdd
()
{
fail
(
"Not yet implemented"
);
}
public
void
testClassifyMatListOfKeyPointMatListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testClassifyMatListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testClear
()
{
fail
(
"Not yet implemented"
);
}
public
void
testCloneBoolean
()
{
fail
(
"Not yet implemented"
);
}
public
void
testClone
()
{
fail
(
"Not yet implemented"
);
}
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testGetTrainImages
()
{
fail
(
"Not yet implemented"
);
}
public
void
testGetTrainKeypoints
()
{
fail
(
"Not yet implemented"
);
}
public
void
testIsMaskSupported
()
{
fail
(
"Not yet implemented"
);
}
public
void
testKnnMatchMatListOfKeyPointMatListOfKeyPointListOfListOfDMatchIntMatBoolean
()
{
fail
(
"Not yet implemented"
);
}
public
void
testKnnMatchMatListOfKeyPointMatListOfKeyPointListOfListOfDMatchIntMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testKnnMatchMatListOfKeyPointMatListOfKeyPointListOfListOfDMatchInt
()
{
fail
(
"Not yet implemented"
);
}
public
void
testKnnMatchMatListOfKeyPointListOfListOfDMatchIntListOfMatBoolean
()
{
fail
(
"Not yet implemented"
);
}
public
void
testKnnMatchMatListOfKeyPointListOfListOfDMatchIntListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testKnnMatchMatListOfKeyPointListOfListOfDMatchInt
()
{
fail
(
"Not yet implemented"
);
}
public
void
testMatchMatListOfKeyPointMatListOfKeyPointListOfDMatchMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testMatchMatListOfKeyPointMatListOfKeyPointListOfDMatch
()
{
fail
(
"Not yet implemented"
);
}
public
void
testMatchMatListOfKeyPointListOfDMatchListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testMatchMatListOfKeyPointListOfDMatch
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRadiusMatchMatListOfKeyPointMatListOfKeyPointListOfListOfDMatchFloatMatBoolean
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRadiusMatchMatListOfKeyPointMatListOfKeyPointListOfListOfDMatchFloatMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRadiusMatchMatListOfKeyPointMatListOfKeyPointListOfListOfDMatchFloat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRadiusMatchMatListOfKeyPointListOfListOfDMatchFloatListOfMatBoolean
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRadiusMatchMatListOfKeyPointListOfListOfDMatchFloatListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRadiusMatchMatListOfKeyPointListOfListOfDMatchFloat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testTrain
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/OpponentBRIEFDescriptorExtractorTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
OpponentBRIEFDescriptorExtractorTest
extends
OpenCVTestCase
{
public
void
testComputeListOfMatListOfListOfKeyPointListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testComputeMatListOfKeyPointMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDescriptorSize
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDescriptorType
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/OpponentORBDescriptorExtractorTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
OpponentORBDescriptorExtractorTest
extends
OpenCVTestCase
{
public
void
testComputeListOfMatListOfListOfKeyPointListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testComputeMatListOfKeyPointMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDescriptorSize
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDescriptorType
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/OpponentSIFTDescriptorExtractorTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
OpponentSIFTDescriptorExtractorTest
extends
OpenCVTestCase
{
public
void
testComputeListOfMatListOfListOfKeyPointListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testComputeMatListOfKeyPointMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDescriptorSize
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDescriptorType
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/OpponentSURFDescriptorExtractorTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
OpponentSURFDescriptorExtractorTest
extends
OpenCVTestCase
{
public
void
testComputeListOfMatListOfListOfKeyPointListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testComputeMatListOfKeyPointMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDescriptorSize
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDescriptorType
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/PyramidDENSEFeatureDetectorTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
PyramidDENSEFeatureDetectorTest
extends
OpenCVTestCase
{
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPointListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPointMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/PyramidFASTFeatureDetectorTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
PyramidFASTFeatureDetectorTest
extends
OpenCVTestCase
{
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPointListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPointMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/PyramidGFTTFeatureDetectorTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
PyramidGFTTFeatureDetectorTest
extends
OpenCVTestCase
{
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPointListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPointMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/PyramidHARRISFeatureDetectorTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
PyramidHARRISFeatureDetectorTest
extends
OpenCVTestCase
{
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPointListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPointMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/PyramidMSERFeatureDetectorTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
PyramidMSERFeatureDetectorTest
extends
OpenCVTestCase
{
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPointListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPointMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/PyramidORBFeatureDetectorTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
PyramidORBFeatureDetectorTest
extends
OpenCVTestCase
{
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPointListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPointMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/PyramidSIFTFeatureDetectorTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
PyramidSIFTFeatureDetectorTest
extends
OpenCVTestCase
{
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPointListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPointMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/PyramidSIMPLEBLOBFeatureDetectorTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
PyramidSIMPLEBLOBFeatureDetectorTest
extends
OpenCVTestCase
{
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPointListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPointMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/PyramidSTARFeatureDetectorTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
PyramidSTARFeatureDetectorTest
extends
OpenCVTestCase
{
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPointListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPointMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/PyramidSURFFeatureDetectorTest.java
deleted
100644 → 0
View file @
78874c56
package
org
.
opencv
.
test
.
features2d
;
import
org.opencv.test.OpenCVTestCase
;
public
class
PyramidSURFFeatureDetectorTest
extends
OpenCVTestCase
{
public
void
testCreate
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectListOfMatListOfListOfKeyPointListOfMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPoint
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDetectMatListOfKeyPointMat
()
{
fail
(
"Not yet implemented"
);
}
public
void
testEmpty
()
{
fail
(
"Not yet implemented"
);
}
public
void
testRead
()
{
fail
(
"Not yet implemented"
);
}
public
void
testWrite
()
{
fail
(
"Not yet implemented"
);
}
}
modules/features2d/misc/java/test/SIFTDescriptorExtractorTest.java
View file @
f978ee61
...
@@ -29,7 +29,7 @@ public class SIFTDescriptorExtractorTest extends OpenCVTestCase {
...
@@ -29,7 +29,7 @@ public class SIFTDescriptorExtractorTest extends OpenCVTestCase {
@Override
@Override
protected
void
setUp
()
throws
Exception
{
protected
void
setUp
()
throws
Exception
{
super
.
setUp
();
super
.
setUp
();
extractor
=
create
AlgorythmInstance
(
XFEATURES2D_PACKAGE_NAME
+
"SIFT"
,
ALGORITHM_FACTORY_NAME
,
null
,
null
);
extractor
=
create
ClassInstance
(
XFEATURES2D
+
"SIFT"
,
DEFAULT_FACTORY
,
null
,
null
);
keypoint
=
new
KeyPoint
(
55.775577545166016f
,
44.224422454833984f
,
16
,
9.754629f
,
8617.863f
,
1
,
-
1
);
keypoint
=
new
KeyPoint
(
55.775577545166016f
,
44.224422454833984f
,
16
,
9.754629f
,
8617.863f
,
1
,
-
1
);
matSize
=
100
;
matSize
=
100
;
truth
=
new
Mat
(
1
,
128
,
CvType
.
CV_32FC1
)
{
truth
=
new
Mat
(
1
,
128
,
CvType
.
CV_32FC1
)
{
...
@@ -99,8 +99,8 @@ public class SIFTDescriptorExtractorTest extends OpenCVTestCase {
...
@@ -99,8 +99,8 @@ public class SIFTDescriptorExtractorTest extends OpenCVTestCase {
extractor
.
write
(
filename
);
extractor
.
write
(
filename
);
// String truth = "%YAML
1.0\n---\nname: \"Feature2D.SIFT\"\ncontrastThreshold: 4.0000000000000001e-02\nedgeThreshold: 10.\nnFeatures: 0\nnOctaveLayers: 3\nsigma: 1.6000000000000001e+00\n";
// String truth = "%YAML
:
1.0\n---\nname: \"Feature2D.SIFT\"\ncontrastThreshold: 4.0000000000000001e-02\nedgeThreshold: 10.\nnFeatures: 0\nnOctaveLayers: 3\nsigma: 1.6000000000000001e+00\n";
String
truth
=
"%YAML
1.0\n---\n"
;
String
truth
=
"%YAML
:
1.0\n---\n"
;
String
actual
=
readFile
(
filename
);
String
actual
=
readFile
(
filename
);
actual
=
actual
.
replaceAll
(
"e([+-])0(\\d\\d)"
,
"e$1$2"
);
// NOTE: workaround for different platforms double representation
actual
=
actual
.
replaceAll
(
"e([+-])0(\\d\\d)"
,
"e$1$2"
);
// NOTE: workaround for different platforms double representation
assertEquals
(
truth
,
actual
);
assertEquals
(
truth
,
actual
);
...
...
modules/features2d/misc/java/test/STARFeatureDetectorTest.java
View file @
f978ee61
...
@@ -43,7 +43,7 @@ public class STARFeatureDetectorTest extends OpenCVTestCase {
...
@@ -43,7 +43,7 @@ public class STARFeatureDetectorTest extends OpenCVTestCase {
protected
void
setUp
()
throws
Exception
{
protected
void
setUp
()
throws
Exception
{
super
.
setUp
();
super
.
setUp
();
detector
=
create
AlgorythmInstance
(
XFEATURES2D_PACKAGE_NAME
+
"StarDetector"
,
ALGORITHM_FACTORY_NAME
,
null
,
null
);
detector
=
create
ClassInstance
(
XFEATURES2D
+
"StarDetector"
,
DEFAULT_FACTORY
,
null
,
null
);
matSize
=
200
;
matSize
=
200
;
truth
=
new
KeyPoint
[]
{
truth
=
new
KeyPoint
[]
{
new
KeyPoint
(
95
,
80
,
22
,
-
1
,
31.5957f
,
0
,
-
1
),
new
KeyPoint
(
95
,
80
,
22
,
-
1
,
31.5957f
,
0
,
-
1
),
...
@@ -101,7 +101,7 @@ public class STARFeatureDetectorTest extends OpenCVTestCase {
...
@@ -101,7 +101,7 @@ public class STARFeatureDetectorTest extends OpenCVTestCase {
detector
.
detect
(
img
,
keypoints1
);
detector
.
detect
(
img
,
keypoints1
);
String
filename
=
OpenCVTestRunner
.
getTempFileName
(
"yml"
);
String
filename
=
OpenCVTestRunner
.
getTempFileName
(
"yml"
);
writeFile
(
filename
,
"%YAML
1.0\n---\nmaxSize: 45\nresponseThreshold: 150\nlineThresholdProjected: 10\nlineThresholdBinarized: 8\nsuppressNonmaxSize: 5\n"
);
writeFile
(
filename
,
"%YAML
:
1.0\n---\nmaxSize: 45\nresponseThreshold: 150\nlineThresholdProjected: 10\nlineThresholdBinarized: 8\nsuppressNonmaxSize: 5\n"
);
detector
.
read
(
filename
);
detector
.
read
(
filename
);
MatOfKeyPoint
keypoints2
=
new
MatOfKeyPoint
();
MatOfKeyPoint
keypoints2
=
new
MatOfKeyPoint
();
...
@@ -125,8 +125,8 @@ public class STARFeatureDetectorTest extends OpenCVTestCase {
...
@@ -125,8 +125,8 @@ public class STARFeatureDetectorTest extends OpenCVTestCase {
detector
.
write
(
filename
);
detector
.
write
(
filename
);
// String truth = "%YAML
1.0\n---\nname: \"Feature2D.STAR\"\nlineThresholdBinarized: 8\nlineThresholdProjected: 10\nmaxSize: 45\nresponseThreshold: 30\nsuppressNonmaxSize: 5\n";
// String truth = "%YAML
:
1.0\n---\nname: \"Feature2D.STAR\"\nlineThresholdBinarized: 8\nlineThresholdProjected: 10\nmaxSize: 45\nresponseThreshold: 30\nsuppressNonmaxSize: 5\n";
String
truth
=
"%YAML
1.0\n---\n"
;
String
truth
=
"%YAML
:
1.0\n---\n"
;
assertEquals
(
truth
,
readFile
(
filename
));
assertEquals
(
truth
,
readFile
(
filename
));
}
}
...
...
modules/features2d/misc/java/test/SURFDescriptorExtractorTest.java
View file @
f978ee61
...
@@ -30,7 +30,7 @@ public class SURFDescriptorExtractorTest extends OpenCVTestCase {
...
@@ -30,7 +30,7 @@ public class SURFDescriptorExtractorTest extends OpenCVTestCase {
Class
[]
cParams
=
{
double
.
class
,
int
.
class
,
int
.
class
,
boolean
.
class
,
boolean
.
class
};
Class
[]
cParams
=
{
double
.
class
,
int
.
class
,
int
.
class
,
boolean
.
class
,
boolean
.
class
};
Object
[]
oValues
=
{
100
,
2
,
4
,
true
,
false
};
Object
[]
oValues
=
{
100
,
2
,
4
,
true
,
false
};
extractor
=
create
AlgorythmInstance
(
XFEATURES2D_PACKAGE_NAME
+
"SURF"
,
ALGORITHM_FACTORY_NAME
,
cParams
,
oValues
);
extractor
=
create
ClassInstance
(
XFEATURES2D
+
"SURF"
,
DEFAULT_FACTORY
,
cParams
,
oValues
);
matSize
=
100
;
matSize
=
100
;
}
}
...
@@ -89,7 +89,7 @@ public class SURFDescriptorExtractorTest extends OpenCVTestCase {
...
@@ -89,7 +89,7 @@ public class SURFDescriptorExtractorTest extends OpenCVTestCase {
public
void
testRead
()
{
public
void
testRead
()
{
String
filename
=
OpenCVTestRunner
.
getTempFileName
(
"yml"
);
String
filename
=
OpenCVTestRunner
.
getTempFileName
(
"yml"
);
writeFile
(
filename
,
"%YAML
1.0\n---\nnOctaves: 4\nnOctaveLayers: 2\nextended: 1\nupright: 0\n"
);
writeFile
(
filename
,
"%YAML
:
1.0\n---\nnOctaves: 4\nnOctaveLayers: 2\nextended: 1\nupright: 0\n"
);
extractor
.
read
(
filename
);
extractor
.
read
(
filename
);
...
@@ -111,8 +111,8 @@ public class SURFDescriptorExtractorTest extends OpenCVTestCase {
...
@@ -111,8 +111,8 @@ public class SURFDescriptorExtractorTest extends OpenCVTestCase {
extractor
.
write
(
filename
);
extractor
.
write
(
filename
);
// String truth = "%YAML
1.0\n---\nname: \"Feature2D.SURF\"\nextended: 1\nhessianThreshold: 100.\nnOctaveLayers: 2\nnOctaves: 4\nupright: 0\n";
// String truth = "%YAML
:
1.0\n---\nname: \"Feature2D.SURF\"\nextended: 1\nhessianThreshold: 100.\nnOctaveLayers: 2\nnOctaves: 4\nupright: 0\n";
String
truth
=
"%YAML
1.0\n---\n"
;
String
truth
=
"%YAML
:
1.0\n---\n"
;
assertEquals
(
truth
,
readFile
(
filename
));
assertEquals
(
truth
,
readFile
(
filename
));
}
}
...
...
modules/features2d/misc/java/test/SURFFeatureDetectorTest.java
View file @
f978ee61
...
@@ -53,7 +53,7 @@ public class SURFFeatureDetectorTest extends OpenCVTestCase {
...
@@ -53,7 +53,7 @@ public class SURFFeatureDetectorTest extends OpenCVTestCase {
@Override
@Override
protected
void
setUp
()
throws
Exception
{
protected
void
setUp
()
throws
Exception
{
super
.
setUp
();
super
.
setUp
();
detector
=
create
AlgorythmInstance
(
XFEATURES2D_PACKAGE_NAME
+
"SURF"
,
ALGORITHM_FACTORY_NAME
,
null
,
null
);
detector
=
create
ClassInstance
(
XFEATURES2D
+
"SURF"
,
DEFAULT_FACTORY
,
null
,
null
);
matSize
=
100
;
matSize
=
100
;
truth
=
new
KeyPoint
[]
{
truth
=
new
KeyPoint
[]
{
new
KeyPoint
(
55.775578f
,
55.775578f
,
16
,
80.245735f
,
8617.8633f
,
0
,
-
1
),
new
KeyPoint
(
55.775578f
,
55.775578f
,
16
,
80.245735f
,
8617.8633f
,
0
,
-
1
),
...
@@ -143,7 +143,7 @@ public class SURFFeatureDetectorTest extends OpenCVTestCase {
...
@@ -143,7 +143,7 @@ public class SURFFeatureDetectorTest extends OpenCVTestCase {
detector
.
detect
(
cross
,
keypoints1
);
detector
.
detect
(
cross
,
keypoints1
);
String
filename
=
OpenCVTestRunner
.
getTempFileName
(
"yml"
);
String
filename
=
OpenCVTestRunner
.
getTempFileName
(
"yml"
);
writeFile
(
filename
,
"%YAML
1.0\n---\nhessianThreshold: 8000.\noctaves: 3\noctaveLayers: 4\nupright: 0\n"
);
writeFile
(
filename
,
"%YAML
:
1.0\n---\nhessianThreshold: 8000.\noctaves: 3\noctaveLayers: 4\nupright: 0\n"
);
detector
.
read
(
filename
);
detector
.
read
(
filename
);
MatOfKeyPoint
keypoints2
=
new
MatOfKeyPoint
();
MatOfKeyPoint
keypoints2
=
new
MatOfKeyPoint
();
...
@@ -167,8 +167,8 @@ public class SURFFeatureDetectorTest extends OpenCVTestCase {
...
@@ -167,8 +167,8 @@ public class SURFFeatureDetectorTest extends OpenCVTestCase {
detector
.
write
(
filename
);
detector
.
write
(
filename
);
// String truth = "%YAML
1.0\n---\nname: \"Feature2D.SURF\"\nextended: 0\nhessianThreshold: 100.\nnOctaveLayers: 3\nnOctaves: 4\nupright: 0\n";
// String truth = "%YAML
:
1.0\n---\nname: \"Feature2D.SURF\"\nextended: 0\nhessianThreshold: 100.\nnOctaveLayers: 3\nnOctaves: 4\nupright: 0\n";
String
truth
=
"%YAML
1.0\n---\n"
;
String
truth
=
"%YAML
:
1.0\n---\n"
;
assertEquals
(
truth
,
readFile
(
filename
));
assertEquals
(
truth
,
readFile
(
filename
));
}
}
...
...
modules/imgproc/misc/java/test/ImgprocTest.java
View file @
f978ee61
...
@@ -1116,7 +1116,7 @@ public class ImgprocTest extends OpenCVTestCase {
...
@@ -1116,7 +1116,7 @@ public class ImgprocTest extends OpenCVTestCase {
Imgproc
.
HoughLinesP
(
img
,
lines
,
1
,
3.1415926
/
180
,
100
);
Imgproc
.
HoughLinesP
(
img
,
lines
,
1
,
3.1415926
/
180
,
100
);
assertEquals
(
2
,
lines
.
col
s
());
assertEquals
(
2
,
lines
.
row
s
());
/*
/*
Log.d("HoughLinesP", "lines=" + lines);
Log.d("HoughLinesP", "lines=" + lines);
...
@@ -1407,14 +1407,14 @@ public class ImgprocTest extends OpenCVTestCase {
...
@@ -1407,14 +1407,14 @@ public class ImgprocTest extends OpenCVTestCase {
}
}
public
void
testMinEnclosingCircle
()
{
public
void
testMinEnclosingCircle
()
{
MatOfPoint2f
points
=
new
MatOfPoint2f
(
new
Point
(
0
,
0
),
new
Point
(-
1
,
0
),
new
Point
(
0
,
-
1
),
new
Point
(
1
,
0
),
new
Point
(
0
,
1
));
MatOfPoint2f
points
=
new
MatOfPoint2f
(
new
Point
(
0
,
0
),
new
Point
(-
1
00
,
0
),
new
Point
(
0
,
-
100
),
new
Point
(
100
,
0
),
new
Point
(
0
,
100
));
Point
actualCenter
=
new
Point
();
Point
actualCenter
=
new
Point
();
float
[]
radius
=
new
float
[
1
];
float
[]
radius
=
new
float
[
1
];
Imgproc
.
minEnclosingCircle
(
points
,
actualCenter
,
radius
);
Imgproc
.
minEnclosingCircle
(
points
,
actualCenter
,
radius
);
assertEquals
(
new
Point
(
0
,
0
),
actualCenter
);
assertEquals
(
new
Point
(
0
,
0
),
actualCenter
);
assertEquals
(
1
.03f
,
radius
[
0
],
EPS
);
assertEquals
(
1
00.0f
,
radius
[
0
],
1.0
);
}
}
public
void
testMomentsMat
()
{
public
void
testMomentsMat
()
{
...
...
modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java
View file @
f978ee61
...
@@ -34,8 +34,8 @@ public class OpenCVTestCase extends TestCase {
...
@@ -34,8 +34,8 @@ public class OpenCVTestCase extends TestCase {
protected
static
boolean
isTestCaseEnabled
=
true
;
protected
static
boolean
isTestCaseEnabled
=
true
;
protected
static
final
String
XFEATURES2D
_PACKAGE_NAME
=
"org.opencv.xfeatures2d."
;
protected
static
final
String
XFEATURES2D
=
"org.opencv.xfeatures2d."
;
protected
static
final
String
ALGORITHM_FACTORY_NAME
=
"create"
;
protected
static
final
String
DEFAULT_FACTORY
=
"create"
;
protected
static
final
int
matSize
=
10
;
protected
static
final
int
matSize
=
10
;
protected
static
final
double
EPS
=
0.001
;
protected
static
final
double
EPS
=
0.001
;
...
@@ -467,63 +467,50 @@ public class OpenCVTestCase extends TestCase {
...
@@ -467,63 +467,50 @@ public class OpenCVTestCase extends TestCase {
}
}
}
}
protected
<
T
>
T
create
Algorythm
Instance
(
String
cname
,
String
factoryName
,
Class
cParams
[],
Object
oValues
[])
{
protected
<
T
>
T
create
Class
Instance
(
String
cname
,
String
factoryName
,
Class
cParams
[],
Object
oValues
[])
{
T
algorithm
=
null
;
T
instance
=
null
;
assertFalse
(
"Class name should not be empty"
,
""
.
equals
(
cname
));
assertFalse
(
"Class name should not be empty"
,
""
.
equals
(
cname
));
String
message
=
""
;
String
message
=
""
;
int
step
=
0
;
try
{
try
{
Class
algClass
=
getClassForName
(
cname
);
Class
algClass
=
getClassForName
(
cname
);
step
=
1
;
Method
factory
=
null
;
Method
factory
=
null
;
if
(
cParams
!=
null
&&
cParams
.
length
>
0
)
{
if
(
cParams
!=
null
&&
cParams
.
length
>
0
)
{
step
=
2
;
if
(!
""
.
equals
(
factoryName
))
{
if
(!
""
.
equals
(
factoryName
))
{
step
=
3
;
factory
=
algClass
.
getDeclaredMethod
(
factoryName
,
cParams
);
factory
=
algClass
.
getDeclaredMethod
(
factoryName
,
cParams
);
algorithm
=
(
T
)
factory
.
invoke
(
null
,
oValues
);
instance
=
(
T
)
factory
.
invoke
(
null
,
oValues
);
step
=
4
;
}
}
else
{
else
{
step
=
5
;
instance
=
(
T
)
algClass
.
getConstructor
(
cParams
).
newInstance
(
oValues
);
algorithm
=
(
T
)
algClass
.
getConstructor
(
cParams
).
newInstance
(
oValues
);
step
=
6
;
}
}
}
}
else
{
else
{
step
=
7
;
if
(!
""
.
equals
(
factoryName
))
{
if
(!
""
.
equals
(
factoryName
))
{
step
=
8
;
factory
=
algClass
.
getDeclaredMethod
(
factoryName
);
factory
=
algClass
.
getDeclaredMethod
(
factoryName
);
algorithm
=
(
T
)
factory
.
invoke
(
null
);
instance
=
(
T
)
factory
.
invoke
(
null
);
step
=
9
;
}
}
else
{
else
{
step
=
10
;
instance
=
(
T
)
algClass
.
getConstructor
().
newInstance
();
algorithm
=
(
T
)
algClass
.
getConstructor
().
newInstance
();
step
=
11
;
}
}
}
}
}
}
catch
(
Exception
ex
)
{
catch
(
Exception
ex
)
{
message
=
TAG
+
" :: "
+
"could not instantiate "
+
cname
+
"!
step "
+
step
;
message
=
TAG
+
" :: "
+
"could not instantiate "
+
cname
+
"!
Exception: "
+
ex
.
getMessage
()
;
}
}
assertTrue
(
message
,
algorithm
!=
null
);
assertTrue
(
message
,
instance
!=
null
);
return
algorithm
;
return
instance
;
}
}
protected
<
T
>
void
setProperty
(
T
algorythm
,
String
propertyName
,
String
propertyType
,
Object
propertyValue
)
{
protected
<
T
>
void
setProperty
(
T
instance
,
String
propertyName
,
String
propertyType
,
Object
propertyValue
)
{
String
message
=
""
;
String
message
=
""
;
try
{
try
{
String
smethod
=
"set"
+
propertyName
.
substring
(
0
,
1
).
toUpperCase
()
+
propertyName
.
substring
(
1
);
String
smethod
=
"set"
+
propertyName
.
substring
(
0
,
1
).
toUpperCase
()
+
propertyName
.
substring
(
1
);
// System.out.println("Setting field " + p.getPname() + "/" + smethod + "/" + p.getValue());
Method
setter
=
instance
.
getClass
().
getMethod
(
smethod
,
getClassForName
(
propertyType
));
Method
setter
=
algorythm
.
getClass
().
getMethod
(
smethod
,
getClassForName
(
propertyType
));
setter
.
invoke
(
instance
,
propertyValue
);
setter
.
invoke
(
algorythm
,
propertyValue
);
}
}
catch
(
Exception
ex
)
{
catch
(
Exception
ex
)
{
message
=
"Error when setting property ["
+
propertyName
+
"]: "
+
ex
.
getMessage
();
message
=
"Error when setting property ["
+
propertyName
+
"]: "
+
ex
.
getMessage
();
...
...
modules/java/pure_test/src/org/opencv/test/OpenCVTestCase.java
View file @
f978ee61
...
@@ -32,8 +32,8 @@ public class OpenCVTestCase extends TestCase {
...
@@ -32,8 +32,8 @@ public class OpenCVTestCase extends TestCase {
protected
static
boolean
isTestCaseEnabled
=
true
;
protected
static
boolean
isTestCaseEnabled
=
true
;
protected
static
final
String
XFEATURES2D
_PACKAGE_NAME
=
"org.opencv.xfeatures2d."
;
protected
static
final
String
XFEATURES2D
=
"org.opencv.xfeatures2d."
;
protected
static
final
String
ALGORITHM_FACTORY_NAME
=
"create"
;
protected
static
final
String
DEFAULT_FACTORY
=
"create"
;
protected
static
final
int
matSize
=
10
;
protected
static
final
int
matSize
=
10
;
protected
static
final
double
EPS
=
0.001
;
protected
static
final
double
EPS
=
0.001
;
...
@@ -493,63 +493,50 @@ public class OpenCVTestCase extends TestCase {
...
@@ -493,63 +493,50 @@ public class OpenCVTestCase extends TestCase {
}
}
}
}
protected
<
T
>
T
create
Algorythm
Instance
(
String
cname
,
String
factoryName
,
Class
cParams
[],
Object
oValues
[])
{
protected
<
T
>
T
create
Class
Instance
(
String
cname
,
String
factoryName
,
Class
cParams
[],
Object
oValues
[])
{
T
algorithm
=
null
;
T
instance
=
null
;
assertFalse
(
"Class name should not be empty"
,
""
.
equals
(
cname
));
assertFalse
(
"Class name should not be empty"
,
""
.
equals
(
cname
));
String
message
=
""
;
String
message
=
""
;
int
step
=
0
;
try
{
try
{
Class
algClass
=
getClassForName
(
cname
);
Class
algClass
=
getClassForName
(
cname
);
step
=
1
;
Method
factory
=
null
;
Method
factory
=
null
;
if
(
cParams
!=
null
&&
cParams
.
length
>
0
)
{
if
(
cParams
!=
null
&&
cParams
.
length
>
0
)
{
step
=
2
;
if
(!
""
.
equals
(
factoryName
))
{
if
(!
""
.
equals
(
factoryName
))
{
step
=
3
;
factory
=
algClass
.
getDeclaredMethod
(
factoryName
,
cParams
);
factory
=
algClass
.
getDeclaredMethod
(
factoryName
,
cParams
);
algorithm
=
(
T
)
factory
.
invoke
(
null
,
oValues
);
instance
=
(
T
)
factory
.
invoke
(
null
,
oValues
);
step
=
4
;
}
}
else
{
else
{
step
=
5
;
instance
=
(
T
)
algClass
.
getConstructor
(
cParams
).
newInstance
(
oValues
);
algorithm
=
(
T
)
algClass
.
getConstructor
(
cParams
).
newInstance
(
oValues
);
step
=
6
;
}
}
}
}
else
{
else
{
step
=
7
;
if
(!
""
.
equals
(
factoryName
))
{
if
(!
""
.
equals
(
factoryName
))
{
step
=
8
;
factory
=
algClass
.
getDeclaredMethod
(
factoryName
);
factory
=
algClass
.
getDeclaredMethod
(
factoryName
);
algorithm
=
(
T
)
factory
.
invoke
(
null
);
instance
=
(
T
)
factory
.
invoke
(
null
);
step
=
9
;
}
}
else
{
else
{
step
=
10
;
instance
=
(
T
)
algClass
.
getConstructor
().
newInstance
();
algorithm
=
(
T
)
algClass
.
getConstructor
().
newInstance
();
step
=
11
;
}
}
}
}
}
}
catch
(
Exception
ex
)
{
catch
(
Exception
ex
)
{
message
=
TAG
+
" :: "
+
"could not instantiate "
+
cname
+
"!
step "
+
step
;
message
=
TAG
+
" :: "
+
"could not instantiate "
+
cname
+
"!
Exception: "
+
ex
.
getMessage
()
;
}
}
assertTrue
(
message
,
algorithm
!=
null
);
assertTrue
(
message
,
instance
!=
null
);
return
algorithm
;
return
instance
;
}
}
protected
<
T
>
void
setProperty
(
T
algorythm
,
String
propertyName
,
String
propertyType
,
Object
propertyValue
)
{
protected
<
T
>
void
setProperty
(
T
instance
,
String
propertyName
,
String
propertyType
,
Object
propertyValue
)
{
String
message
=
""
;
String
message
=
""
;
try
{
try
{
String
smethod
=
"set"
+
propertyName
.
substring
(
0
,
1
).
toUpperCase
()
+
propertyName
.
substring
(
1
);
String
smethod
=
"set"
+
propertyName
.
substring
(
0
,
1
).
toUpperCase
()
+
propertyName
.
substring
(
1
);
// System.out.println("Setting field " + p.getPname() + "/" + smethod + "/" + p.getValue());
Method
setter
=
instance
.
getClass
().
getMethod
(
smethod
,
getClassForName
(
propertyType
));
Method
setter
=
algorythm
.
getClass
().
getMethod
(
smethod
,
getClassForName
(
propertyType
));
setter
.
invoke
(
instance
,
propertyValue
);
setter
.
invoke
(
algorythm
,
propertyValue
);
}
}
catch
(
Exception
ex
)
{
catch
(
Exception
ex
)
{
message
=
"Error when setting property ["
+
propertyName
+
"]: "
+
ex
.
getMessage
();
message
=
"Error when setting property ["
+
propertyName
+
"]: "
+
ex
.
getMessage
();
...
...
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