#include "camera.h"
#include "imgproc.h"
public:
void RGB2Gray(Mat &src) {
cv::cvtColor(src, src, CV_RGB2GRAY);
mImage_gray = src;
};
void Binary(Mat &src) {
cv::threshold(src, src, 0, 255, cv::THRESH_BINARY | cv::THRESH_OTSU);
mImage_binary = src;
};
public:
Mat mImage_raw;
Mat mImage_gray;
Mat mImage_binary;
};
void recognition(cv::Mat &);
Imgproc *mImgproc = new Imgproc();
int main() {
cv::Mat img;
mImgproc->mImage_raw = img;
cv::namedWindow("Output", 1);
recognition(img);
cv::imshow("Output", img);