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