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
2b6aa50b
Commit
2b6aa50b
authored
Jul 14, 2018
by
Kuang Fangjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid negative index.
parent
23fc96e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
check.cpp
modules/core/src/check.cpp
+1
-1
No files found.
modules/core/src/check.cpp
View file @
2b6aa50b
...
@@ -44,7 +44,7 @@ static const char* getTestOpMath(unsigned testOp)
...
@@ -44,7 +44,7 @@ static const char* getTestOpMath(unsigned testOp)
const
char
*
depthToString_
(
int
depth
)
const
char
*
depthToString_
(
int
depth
)
{
{
static
const
char
*
depthNames
[]
=
{
"CV_8U"
,
"CV_8S"
,
"CV_16U"
,
"CV_16S"
,
"CV_32S"
,
"CV_32F"
,
"CV_64F"
,
"CV_USRTYPE1"
};
static
const
char
*
depthNames
[]
=
{
"CV_8U"
,
"CV_8S"
,
"CV_16U"
,
"CV_16S"
,
"CV_32S"
,
"CV_32F"
,
"CV_64F"
,
"CV_USRTYPE1"
};
return
depth
<=
CV_USRTYPE1
?
depthNames
[
depth
]
:
NULL
;
return
(
depth
<=
CV_USRTYPE1
&&
depth
>=
0
)
?
depthNames
[
depth
]
:
NULL
;
}
}
const
cv
::
String
typeToString_
(
int
type
)
const
cv
::
String
typeToString_
(
int
type
)
...
...
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