Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
acb1cdf2
Commit
acb1cdf2
authored
Dec 13, 2011
by
Davis King
Browse files
changed code to avoid a compiler warning
parent
3ecacdcc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
dlib/opencv/cv_image.h
dlib/opencv/cv_image.h
+5
-1
No files found.
dlib/opencv/cv_image.h
View file @
acb1cdf2
...
...
@@ -84,7 +84,11 @@ namespace dlib
private:
inline
void
check_image_type
(
const
IplImage
*
img
)
const
inline
void
check_image_type
(
const
IplImage
*
#ifdef ENABLE_ASSERTS
img
// the #ifdef is here to avoid an unused warning argument from the compiler
#endif
)
const
{
DLIB_ASSERT
(
img
->
dataOrder
==
0
,
"Only interleaved color channels are supported with cv_image"
);
DLIB_ASSERT
((
img
->
depth
&
0xFF
)
/
8
*
img
->
nChannels
==
sizeof
(
pixel_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