Add Frame Reading
This commit is contained in:
@@ -52,6 +52,8 @@ void ImageManager::ProcessImage(int width, int height, uint8_t *imgPointer)
|
|||||||
//else
|
//else
|
||||||
// frame = testFrame;
|
// frame = testFrame;
|
||||||
|
|
||||||
|
frame = Mat(height, width, CV_16UC1, imgPointer, Mat::AUTO_STEP);
|
||||||
|
|
||||||
// Create mask and then flatten
|
// Create mask and then flatten
|
||||||
GaussianBlur(frame, mask, cv::Size(0, 0), 1);
|
GaussianBlur(frame, mask, cv::Size(0, 0), 1);
|
||||||
threshold(mask, mask, temp_threshold, BITS16, THRESH_BINARY); // use inrange for mask in range of values
|
threshold(mask, mask, temp_threshold, BITS16, THRESH_BINARY); // use inrange for mask in range of values
|
||||||
|
|||||||
Reference in New Issue
Block a user