mirror of https://github.com/davisking/dlib.git
Gave numpy_image a (rows,cols) constructor.
This commit is contained in:
parent
d6b1f69b57
commit
0d6f1f75db
|
@ -146,6 +146,14 @@ namespace dlib
|
||||||
assert_is_image<pixel_type>(img);
|
assert_is_image<pixel_type>(img);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
numpy_image (
|
||||||
|
long rows,
|
||||||
|
long cols
|
||||||
|
)
|
||||||
|
{
|
||||||
|
set_size(rows,cols);
|
||||||
|
}
|
||||||
|
|
||||||
numpy_image (
|
numpy_image (
|
||||||
const py::object& img
|
const py::object& img
|
||||||
) : numpy_image(img.cast<py::array>()) {}
|
) : numpy_image(img.cast<py::array>()) {}
|
||||||
|
|
Loading…
Reference in New Issue