Improved input validation for numpy_image.

This commit is contained in:
Davis King 2018-05-20 17:58:21 -04:00
parent e83f350399
commit 1619725f22
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ namespace dlib
const py::object& rhs
)
{
py::array_t<typename pixel_traits<pixel_type>::basic_pixel_type, py::array::c_style> arr = rhs.cast<py::array>();
py::array arr = rhs.cast<py::array>();
assert_is_image<pixel_type>(arr);
py::array_t<typename pixel_traits<pixel_type>::basic_pixel_type, py::array::c_style>::operator=(arr);
return *this;