Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
0d6f1f75
Commit
0d6f1f75
authored
Jun 01, 2018
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Gave numpy_image a (rows,cols) constructor.
parent
d6b1f69b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
numpy_image.h
dlib/python/numpy_image.h
+8
-0
No files found.
dlib/python/numpy_image.h
View file @
0d6f1f75
...
...
@@ -146,6 +146,14 @@ namespace dlib
assert_is_image
<
pixel_type
>
(
img
);
}
numpy_image
(
long
rows
,
long
cols
)
{
set_size
(
rows
,
cols
);
}
numpy_image
(
const
py
::
object
&
img
)
:
numpy_image
(
img
.
cast
<
py
::
array
>
())
{}
...
...
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