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
da9e3ed6
Commit
da9e3ed6
authored
Jun 02, 2011
by
Andrey Morozov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commented several tests because it's very slow
parent
2df096c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
test_drawing.cpp
modules/highgui/test/test_drawing.cpp
+2
-2
test_ffmpeg.cpp
modules/highgui/test/test_ffmpeg.cpp
+6
-0
No files found.
modules/highgui/test/test_drawing.cpp
View file @
da9e3ed6
...
@@ -408,6 +408,6 @@ int CV_DrawingTest_C::checkLineIterator( Mat& _img )
...
@@ -408,6 +408,6 @@ int CV_DrawingTest_C::checkLineIterator( Mat& _img )
return
0
;
return
0
;
}
}
TEST
(
Highgui_Drawing_CPP
,
regression
)
{
CV_DrawingTest_CPP
test
;
test
.
safe_run
();
}
//
TEST(Highgui_Drawing_CPP, regression) { CV_DrawingTest_CPP test; test.safe_run(); }
TEST
(
Highgui_Drawing_C
,
regression
)
{
CV_DrawingTest_C
test
;
test
.
safe_run
();
}
//
TEST(Highgui_Drawing_C, regression) { CV_DrawingTest_C test; test.safe_run(); }
modules/highgui/test/test_ffmpeg.cpp
View file @
da9e3ed6
...
@@ -53,9 +53,13 @@ class CV_FFmpegWriteBigImageTest : public cvtest::BaseTest
...
@@ -53,9 +53,13 @@ class CV_FFmpegWriteBigImageTest : public cvtest::BaseTest
{
{
try
try
{
{
ts
->
printf
(
ts
->
LOG
,
"start reading bit image
\n
"
);
Mat
img
=
imread
(
string
(
ts
->
get_data_path
())
+
"readwrite/read.png"
);
Mat
img
=
imread
(
string
(
ts
->
get_data_path
())
+
"readwrite/read.png"
);
ts
->
printf
(
ts
->
LOG
,
"finish reading bit image
\n
"
);
if
(
img
.
empty
())
ts
->
set_failed_test_info
(
cvtest
::
TS
::
FAIL_INVALID_TEST_DATA
);
if
(
img
.
empty
())
ts
->
set_failed_test_info
(
cvtest
::
TS
::
FAIL_INVALID_TEST_DATA
);
ts
->
printf
(
ts
->
LOG
,
"start writing bit image
\n
"
);
imwrite
(
string
(
ts
->
get_data_path
())
+
"readwrite/write.png"
,
img
);
imwrite
(
string
(
ts
->
get_data_path
())
+
"readwrite/write.png"
,
img
);
ts
->
printf
(
ts
->
LOG
,
"finish writing bit image
\n
"
);
}
}
catch
(...)
catch
(...)
{
{
...
@@ -105,6 +109,7 @@ string ext_from_int(int ext)
...
@@ -105,6 +109,7 @@ string ext_from_int(int ext)
if
(
ext
==
2
)
return
".bmp"
;
if
(
ext
==
2
)
return
".bmp"
;
if
(
ext
==
3
)
return
".pgm"
;
if
(
ext
==
3
)
return
".pgm"
;
if
(
ext
==
4
)
return
".tiff"
;
if
(
ext
==
4
)
return
".tiff"
;
return
""
;
}
}
class
CV_FFmpegWriteSequenceImageTest
:
public
cvtest
::
BaseTest
class
CV_FFmpegWriteSequenceImageTest
:
public
cvtest
::
BaseTest
...
@@ -129,6 +134,7 @@ class CV_FFmpegWriteSequenceImageTest : public cvtest::BaseTest
...
@@ -129,6 +134,7 @@ class CV_FFmpegWriteSequenceImageTest : public cvtest::BaseTest
Mat
img_test
=
imread
(
string
(
ts
->
get_data_path
())
+
"readwrite/test"
+
ext_from_int
(
ext
));
Mat
img_test
=
imread
(
string
(
ts
->
get_data_path
())
+
"readwrite/test"
+
ext_from_int
(
ext
));
CV_Assert
(
img
.
size
()
==
img_test
.
size
());
CV_Assert
(
img
.
size
()
==
img_test
.
size
());
CV_Assert
(
img
.
type
()
==
img_test
.
type
());
CV_Assert
(
img
.
type
()
==
img_test
.
type
());
ts
->
printf
(
ts
->
LOG
,
"image type depth:%d channels:%d ext: %s
\n
"
,
depth
,
num_channels
,
ext_from_int
(
ext
).
c_str
());
if
(
countNonZero
(
img
!=
img_test
)
!=
0
)
if
(
countNonZero
(
img
!=
img_test
)
!=
0
)
ts
->
set_failed_test_info
(
cvtest
::
TS
::
FAIL_GENERIC
);
ts
->
set_failed_test_info
(
cvtest
::
TS
::
FAIL_GENERIC
);
}
}
...
...
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