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
1e8c2cc1
"src/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "7e29b747f935c08f5b85c6eccaad4490023788c9"
Commit
1e8c2cc1
authored
Jun 11, 2018
by
Davis King
Browse files
Removed spurious ;
parent
4f7c01f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dlib/python/numpy_image.h
dlib/python/numpy_image.h
+2
-2
No files found.
dlib/python/numpy_image.h
View file @
1e8c2cc1
...
...
@@ -360,7 +360,7 @@ namespace pybind11
template
<
size_t
channels
>
static
PYBIND11_DESCR
getname
(
typename
std
::
enable_if
<
channels
==
1
,
int
>::
type
)
{
return
_
(
"numpy.ndarray[(rows,cols),"
)
+
npy_format_descriptor
<
basic_pixel_type
>::
name
()
+
_
(
"]"
);
}
;
}
template
<
size_t
channels
>
static
PYBIND11_DESCR
getname
(
typename
std
::
enable_if
<
channels
!=
1
,
int
>::
type
)
{
if
(
channels
==
2
)
...
...
@@ -369,7 +369,7 @@ namespace pybind11
return
_
(
"numpy.ndarray[(rows,cols,3),"
)
+
npy_format_descriptor
<
basic_pixel_type
>::
name
()
+
_
(
"]"
);
else
if
(
channels
==
4
)
return
_
(
"numpy.ndarray[(rows,cols,4),"
)
+
npy_format_descriptor
<
basic_pixel_type
>::
name
()
+
_
(
"]"
);
}
;
}
static
PYBIND11_DESCR
name
()
{
constexpr
size_t
channels
=
dlib
::
pixel_traits
<
pixel_type
>::
num
;
...
...
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