From 354d6110f8860ffdebd320c399df20f1e14c37c4 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Sun, 20 Sep 2015 21:12:31 -0400 Subject: [PATCH] Using const for textcontour debug image --- src/openalpr/textdetection/textcontours.cpp | 4 ++-- src/openalpr/textdetection/textcontours.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/openalpr/textdetection/textcontours.cpp b/src/openalpr/textdetection/textcontours.cpp index 8f4e80c..9f022b4 100644 --- a/src/openalpr/textdetection/textcontours.cpp +++ b/src/openalpr/textdetection/textcontours.cpp @@ -102,14 +102,14 @@ namespace alpr } } - Mat TextContours::drawDebugImage() { + Mat TextContours::drawDebugImage() const { Mat img_contours = Mat::zeros(Size(width, height), CV_8U); return drawDebugImage(img_contours); } - Mat TextContours::drawDebugImage(Mat baseImage) { + Mat TextContours::drawDebugImage(Mat baseImage) const { Mat img_contours(baseImage.size(), CV_8U); baseImage.copyTo(img_contours); diff --git a/src/openalpr/textdetection/textcontours.h b/src/openalpr/textdetection/textcontours.h index 30454dc..1935bb3 100644 --- a/src/openalpr/textdetection/textcontours.h +++ b/src/openalpr/textdetection/textcontours.h @@ -47,8 +47,8 @@ namespace alpr std::vector getIndicesCopy(); void setIndices(std::vector newIndices); - cv::Mat drawDebugImage(); - cv::Mat drawDebugImage(cv::Mat baseImage); + cv::Mat drawDebugImage() const; + cv::Mat drawDebugImage(cv::Mat baseImage) const; private: