From eef985ecfc09bdfdd9bc49001011f456be9f3535 Mon Sep 17 00:00:00 2001 From: Grant Date: Sun, 12 Jan 2020 11:50:54 -0800 Subject: [PATCH] Add Frame Reading --- ImageManager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ImageManager.cpp b/ImageManager.cpp index 4b0c0e9..d1c3a34 100644 --- a/ImageManager.cpp +++ b/ImageManager.cpp @@ -52,6 +52,8 @@ void ImageManager::ProcessImage(int width, int height, uint8_t *imgPointer) //else // frame = testFrame; + frame = Mat(height, width, CV_16UC1, imgPointer, Mat::AUTO_STEP); + // Create mask and then flatten GaussianBlur(frame, mask, cv::Size(0, 0), 1); threshold(mask, mask, temp_threshold, BITS16, THRESH_BINARY); // use inrange for mask in range of values