Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv_contrib
Commits
ba49cfab
Commit
ba49cfab
authored
Aug 20, 2015
by
Maksim Shabunin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Testing line_descriptor, reg, rgbd
parent
95af1b58
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
17 additions
and
19 deletions
+17
-19
test_descriptors_regression.cpp
modules/line_descriptor/test/test_descriptors_regression.cpp
+4
-5
test_detector_regression.cpp
modules/line_descriptor/test/test_detector_regression.cpp
+1
-2
test_main.cpp
modules/reg/test/test_main.cpp
+1
-1
test_reg.cpp
modules/reg/test/test_reg.cpp
+1
-1
odometry_evaluation.cpp
modules/rgbd/samples/odometry_evaluation.cpp
+1
-1
test_main.cpp
modules/rgbd/test/test_main.cpp
+1
-1
test_normal.cpp
modules/rgbd/test/test_normal.cpp
+1
-1
test_odometry.cpp
modules/rgbd/test/test_odometry.cpp
+7
-7
depth.png
modules/rgbd/testdata/rgbd/odometry/depth.png
+0
-0
rgb.png
modules/rgbd/testdata/rgbd/odometry/rgb.png
+0
-0
No files found.
modules/line_descriptor/test/test_descriptors_regression.cpp
View file @
ba49cfab
...
...
@@ -50,7 +50,6 @@ using namespace cv::line_descriptor;
const
std
::
string
LINE_DESCRIPTOR_DIR
=
"line_descriptor"
;
const
std
::
string
IMAGE_FILENAME
=
"cameraman.jpg"
;
const
std
::
string
DESCRIPTORS_DIR
=
LINE_DESCRIPTOR_DIR
+
"/descriptors"
;
template
<
class
Distance
>
class
CV_BD_DescriptorsTest
:
public
cvtest
::
BaseTest
...
...
@@ -120,7 +119,7 @@ class CV_BD_DescriptorsTest : public cvtest::BaseTest
Mat
readDescriptors
()
{
Mat
descriptors
;
FileStorage
fs
(
std
::
string
(
ts
->
get_data_path
()
)
+
LINE_DESCRIPTOR_DIR
+
"/
descriptors/
"
+
fs_name
,
FileStorage
::
READ
);
FileStorage
fs
(
std
::
string
(
ts
->
get_data_path
()
)
+
LINE_DESCRIPTOR_DIR
+
"/"
+
fs_name
,
FileStorage
::
READ
);
fs
[
"descriptors"
]
>>
descriptors
;
return
descriptors
;
...
...
@@ -128,7 +127,7 @@ class CV_BD_DescriptorsTest : public cvtest::BaseTest
bool
writeDescriptors
(
Mat
&
descs
)
{
FileStorage
fs
(
std
::
string
(
ts
->
get_data_path
()
)
+
LINE_DESCRIPTOR_DIR
+
"/
descriptors/
"
+
fs_name
,
FileStorage
::
WRITE
);
FileStorage
fs
(
std
::
string
(
ts
->
get_data_path
()
)
+
LINE_DESCRIPTOR_DIR
+
"/"
+
fs_name
,
FileStorage
::
WRITE
);
fs
<<
"descriptors"
<<
descs
;
return
true
;
...
...
@@ -270,7 +269,7 @@ class CV_BD_DescriptorsTest : public cvtest::BaseTest
}
std
::
vector
<
KeyLine
>
keylines
;
FileStorage
fs
(
std
::
string
(
ts
->
get_data_path
()
)
+
LINE_DESCRIPTOR_DIR
+
"/
detectors/
edl_detector_keylines_cameraman.yaml"
,
FileStorage
::
READ
);
FileStorage
fs
(
std
::
string
(
ts
->
get_data_path
()
)
+
LINE_DESCRIPTOR_DIR
+
"/edl_detector_keylines_cameraman.yaml"
,
FileStorage
::
READ
);
if
(
fs
.
isOpened
()
)
{
//read( fs.getFirstTopLevelNode(), keypoints );
...
...
@@ -326,7 +325,7 @@ class CV_BD_DescriptorsTest : public cvtest::BaseTest
else
{
ts
->
printf
(
cvtest
::
TS
::
LOG
,
"Compute and write keylines.
\n
"
);
fs
.
open
(
std
::
string
(
ts
->
get_data_path
()
)
+
LINE_DESCRIPTOR_DIR
+
"/
detectors/
edl_detector_keylines_cameraman.yaml"
,
FileStorage
::
WRITE
);
fs
.
open
(
std
::
string
(
ts
->
get_data_path
()
)
+
LINE_DESCRIPTOR_DIR
+
"/edl_detector_keylines_cameraman.yaml"
,
FileStorage
::
WRITE
);
if
(
fs
.
isOpened
()
)
{
bd
->
detect
(
img
,
keylines
);
...
...
modules/line_descriptor/test/test_detector_regression.cpp
View file @
ba49cfab
...
...
@@ -50,7 +50,6 @@ using namespace cv::line_descriptor;
const
std
::
string
LINE_DESCRIPTOR_DIR
=
"line_descriptor"
;
const
std
::
string
IMAGE_FILENAME
=
"cameraman.jpg"
;
const
std
::
string
DETECTOR_DIR
=
LINE_DESCRIPTOR_DIR
+
"/detectors"
;
class
CV_BinaryDescriptorDetectorTest
:
public
cvtest
::
BaseTest
{
...
...
@@ -256,7 +255,7 @@ void CV_BinaryDescriptorDetectorTest::regressionTest()
{
assert
(
bd
);
std
::
string
imgFilename
=
std
::
string
(
ts
->
get_data_path
()
)
+
LINE_DESCRIPTOR_DIR
+
"/"
+
IMAGE_FILENAME
;
std
::
string
resFilename
=
std
::
string
(
ts
->
get_data_path
()
)
+
DETEC
TOR_DIR
+
"/"
+
fs_name
+
".yaml"
;
std
::
string
resFilename
=
std
::
string
(
ts
->
get_data_path
()
)
+
LINE_DESCRIP
TOR_DIR
+
"/"
+
fs_name
+
".yaml"
;
// Read the test image.
Mat
image
=
imread
(
imgFilename
);
...
...
modules/reg/test/test_main.cpp
View file @
ba49cfab
...
...
@@ -43,4 +43,4 @@
#include "test_precomp.hpp"
CV_TEST_MAIN
(
"
reg
"
)
CV_TEST_MAIN
(
"
cv
"
)
modules/reg/test/test_reg.cpp
View file @
ba49cfab
...
...
@@ -244,7 +244,7 @@ void RegTest::testProjective()
void
RegTest
::
loadImage
()
{
const
string
imageName
=
cvtest
::
TS
::
ptr
()
->
get_data_path
()
+
"home.png"
;
const
string
imageName
=
cvtest
::
TS
::
ptr
()
->
get_data_path
()
+
"
reg/
home.png"
;
img1
=
imread
(
imageName
,
-
1
);
ASSERT_TRUE
(
img1
.
data
!=
0
);
...
...
modules/rgbd/samples/odometry_evaluation.cpp
View file @
ba49cfab
...
...
@@ -173,7 +173,7 @@ int main(int argc, char** argv)
Ptr
<
OdometryFrame
>
frame_prev
=
Ptr
<
OdometryFrame
>
(
new
OdometryFrame
()),
frame_curr
=
Ptr
<
OdometryFrame
>
(
new
OdometryFrame
());
Ptr
<
Odometry
>
odometry
=
Odometry
::
create
(
"RGBD."
+
string
(
argv
[
3
])
+
"Odometry"
);
Ptr
<
Odometry
>
odometry
=
Odometry
::
create
(
string
(
argv
[
3
])
+
"Odometry"
);
if
(
odometry
.
empty
())
{
cout
<<
"Can not create Odometry algorithm. Check the passed odometry name."
<<
endl
;
...
...
modules/rgbd/test/test_main.cpp
View file @
ba49cfab
#include "test_precomp.hpp"
CV_TEST_MAIN
(
"
rgbd
"
)
CV_TEST_MAIN
(
"
cv
"
)
modules/rgbd/test/test_normal.cpp
View file @
ba49cfab
...
...
@@ -450,7 +450,7 @@ protected:
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
TEST
(
Rgbd_Normals
,
compute
)
TEST
(
DISABLED_
Rgbd_Normals
,
compute
)
{
cv
::
rgbd
::
CV_RgbdNormalsTest
test
;
test
.
safe_run
();
...
...
modules/rgbd/test/test_odometry.cpp
View file @
ba49cfab
...
...
@@ -175,8 +175,8 @@ protected:
bool
CV_OdometryTest
::
readData
(
Mat
&
image
,
Mat
&
depth
)
const
{
std
::
string
imageFilename
=
std
::
string
(
ts
->
get_data_path
())
+
"/odometry
/rgb.png"
;
std
::
string
depthFilename
=
std
::
string
(
ts
->
get_data_path
())
+
"/odometry
/depth.png"
;
std
::
string
imageFilename
=
ts
->
get_data_path
()
+
"rgbd
/rgb.png"
;
std
::
string
depthFilename
=
ts
->
get_data_path
()
+
"rgbd
/depth.png"
;
image
=
imread
(
imageFilename
,
0
);
depth
=
imread
(
depthFilename
,
-
1
);
...
...
@@ -338,18 +338,18 @@ void CV_OdometryTest::run(int)
TEST
(
RGBD_Odometry_Rgbd
,
algorithmic
)
{
cv
::
rgbd
::
CV_OdometryTest
test
(
cv
::
rgbd
::
Odometry
::
create
(
"R
GBD.R
gbdOdometry"
),
0.99
,
0.94
);
cv
::
rgbd
::
CV_OdometryTest
test
(
cv
::
rgbd
::
Odometry
::
create
(
"RgbdOdometry"
),
0.99
,
0.94
);
test
.
safe_run
();
}
TEST
(
RGBD_Odometry_ICP
,
algorithmic
)
TEST
(
DISABLED_
RGBD_Odometry_ICP
,
algorithmic
)
{
cv
::
rgbd
::
CV_OdometryTest
test
(
cv
::
rgbd
::
Odometry
::
create
(
"
RGBD.
ICPOdometry"
),
0.99
,
0.99
);
cv
::
rgbd
::
CV_OdometryTest
test
(
cv
::
rgbd
::
Odometry
::
create
(
"ICPOdometry"
),
0.99
,
0.99
);
test
.
safe_run
();
}
TEST
(
RGBD_Odometry_RgbdICP
,
algorithmic
)
TEST
(
DISABLED_
RGBD_Odometry_RgbdICP
,
algorithmic
)
{
cv
::
rgbd
::
CV_OdometryTest
test
(
cv
::
rgbd
::
Odometry
::
create
(
"R
GBD.R
gbdICPOdometry"
),
0.99
,
0.99
);
cv
::
rgbd
::
CV_OdometryTest
test
(
cv
::
rgbd
::
Odometry
::
create
(
"RgbdICPOdometry"
),
0.99
,
0.99
);
test
.
safe_run
();
}
modules/rgbd/testdata/rgbd/odometry/depth.png
deleted
100644 → 0
View file @
95af1b58
120 KB
modules/rgbd/testdata/rgbd/odometry/rgb.png
deleted
100644 → 0
View file @
95af1b58
511 KB
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