Mat Operator
•ROI(Region of Interest)
•A sub-region in an image that we are interested in

#include <opencv2/opencv.hpp>
using namespace cv;
int main() {
// 이미지 불러오기
Mat image = imread("lena.png");
// ROI를 지정할 사각형 생성
Rect rect(100, 30, 250, 300);
// ROI 추출
Mat rect_roi = image(rect);
// 추출한 ROI 표시
imshow("rectROI", rect_roi);
waitKey(0);
return 0;
}



absdiff()는 두 픽셀 간의 차이를 보여주는 함수

2,1에서부터 가로 3, 세로 4개만큼의 영역