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
a68d0278
Commit
a68d0278
authored
Apr 09, 2012
by
Andrey Pavlenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Java API: fixing tests compatibility with API level 8
parent
d1a8f562
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
AndroidManifest.xml
modules/java/android_test/AndroidManifest.xml
+1
-1
BruteForceDescriptorMatcherTest.java
...encv/test/features2d/BruteForceDescriptorMatcherTest.java
+2
-2
No files found.
modules/java/android_test/AndroidManifest.xml
View file @
a68d0278
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
"adb shell am instrument -w org.opencv.test/android.test.InstrumentationTestRunner"
"adb shell am instrument -w org.opencv.test/android.test.InstrumentationTestRunner"
-->
-->
<instrumentation
android:name=
"android.test.InstrumentationTestRunner"
<instrumentation
android:name=
"android.test.InstrumentationTestRunner"
android:targetPackage=
"org.opencv
.test
"
android:targetPackage=
"org.opencv"
android:label=
"Tests for org.opencv"
/>
android:label=
"Tests for org.opencv"
/>
<uses-permission
android:name=
"android.permission.CAMERA"
/>
<uses-permission
android:name=
"android.permission.CAMERA"
/>
...
...
modules/java/android_test/src/org/opencv/test/features2d/BruteForceDescriptorMatcherTest.java
View file @
a68d0278
...
@@ -214,7 +214,7 @@ public class BruteForceDescriptorMatcherTest extends OpenCVTestCase {
...
@@ -214,7 +214,7 @@ public class BruteForceDescriptorMatcherTest extends OpenCVTestCase {
matcher
.
match
(
query
,
matches
,
Arrays
.
asList
(
mask
));
matcher
.
match
(
query
,
matches
,
Arrays
.
asList
(
mask
));
assert
ArrayDMatchEquals
(
Arrays
.
copyOfRange
(
truth
,
0
,
2
),
matches
.
toArray
(),
EPS
);
assert
ListDMatchEquals
(
Arrays
.
asList
(
truth
[
0
],
truth
[
1
]),
matches
.
toList
(),
EPS
);
}
}
public
void
testMatchMatMatListOfDMatch
()
{
public
void
testMatchMatMatListOfDMatch
()
{
...
@@ -239,7 +239,7 @@ public class BruteForceDescriptorMatcherTest extends OpenCVTestCase {
...
@@ -239,7 +239,7 @@ public class BruteForceDescriptorMatcherTest extends OpenCVTestCase {
matcher
.
match
(
query
,
train
,
matches
,
mask
);
matcher
.
match
(
query
,
train
,
matches
,
mask
);
assert
ArrayDMatchEquals
(
Arrays
.
copyOfRange
(
truth
,
0
,
2
),
matches
.
toArray
(),
EPS
);
assert
ListDMatchEquals
(
Arrays
.
asList
(
truth
[
0
],
truth
[
1
]),
matches
.
toList
(),
EPS
);
}
}
public
void
testRadiusMatchMatListOfListOfDMatchFloat
()
{
public
void
testRadiusMatchMatListOfListOfDMatchFloat
()
{
...
...
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