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
109e047a
Commit
109e047a
authored
Feb 13, 2013
by
kobigurk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* img_test is now tested for channel numbers instead of img
* fixed indentation to use spaces and trailing spaces
parent
9f80c6c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
test_grfmt.cpp
modules/highgui/test/test_grfmt.cpp
+3
-4
No files found.
modules/highgui/test/test_grfmt.cpp
View file @
109e047a
...
...
@@ -124,10 +124,10 @@ public:
ts
->
set_failed_test_info
(
ts
->
FAIL_MISMATCH
);
}
}
if
(
ext
==
3
/*TIFF*/
)
if
(
ext
==
3
/*TIFF*/
)
{
/* 4 channels should stay 4 channels */
int
num_channels
=
4
;
int
num_channels
=
4
;
ts
->
printf
(
ts
->
LOG
,
"image type depth:%d channels:%d ext: %s
\n
"
,
CV_8U
,
num_channels
,
ext_from_int
(
ext
).
c_str
());
Mat
img
(
img_r
*
k
,
img_c
*
k
,
CV_MAKETYPE
(
CV_8U
,
num_channels
),
Scalar
::
all
(
0
));
circle
(
img
,
Point2i
((
img_c
*
k
)
/
2
,
(
img_r
*
k
)
/
2
),
cv
::
min
((
img_r
*
k
),
(
img_c
*
k
))
/
4
,
Scalar
::
all
(
255
));
...
...
@@ -143,7 +143,7 @@ public:
CV_Assert
(
img
.
size
()
==
img_test
.
size
());
CV_Assert
(
img
.
type
()
==
img_test
.
type
());
CV_Assert
(
img
.
channels
()
==
4
);
CV_Assert
(
img
_test
.
channels
()
==
4
);
double
n
=
norm
(
img
,
img_test
);
if
(
n
>
1.0
)
...
...
@@ -153,7 +153,6 @@ public:
}
}
}
#ifdef HAVE_JPEG
...
...
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