Commit 0d6f1f75 authored by Davis King's avatar Davis King

Gave numpy_image a (rows,cols) constructor.

parent d6b1f69b
......@@ -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>()) {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment