From ec150f8d88fd53f86d412b3b0213b228fd0e67c0 Mon Sep 17 00:00:00 2001 From: Davis King Date: Wed, 23 May 2018 13:09:28 -0400 Subject: [PATCH] Fixed warnings and sorta bugs. --- tools/python/src/image.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/python/src/image.cpp b/tools/python/src/image.cpp index 38179325d..1bda47956 100644 --- a/tools/python/src/image.cpp +++ b/tools/python/src/image.cpp @@ -284,9 +284,10 @@ struct py_pyramid_down template dlib::vector point_down ( - const dlib::vector& p + const dlib::vector& pp ) const { + dpoint p = pp; switch(N) { case 1: return pyr1.point_down(p); @@ -316,9 +317,10 @@ struct py_pyramid_down template dlib::vector point_up ( - const dlib::vector& p + const dlib::vector& pp ) const { + dpoint p = pp; switch(N) { case 1: return pyr1.point_up(p); @@ -1068,7 +1070,7 @@ than 0 are converted to 0."; m.def("convert_rgb_to_grayscale", &convert_rgb_to_grayscale, "Convert a RGB image to a uint8 grayscale image.", py::arg("img")); - docs = ""; + docs = "requires \n\ - thresh > 0 \n\ ensures \n\