Add Frame Reading

This commit is contained in:
2020-01-12 15:17:01 -08:00
parent 628e9e4adf
commit eef985ecfc
+2
View File
@@ -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