<Mat - The Basic Image Container>
목적:OpenCV-based image processing and maniplulation
OpenCV 2.0부터 C++ interface가 도입되었으며,개발자는 메모리 관리를 신경쓸 필요 없이 Mat class 객체를 이용하여 이미지 데이터에 접근 가능
Mat 객체를 전달할 경우 기존에 할당된 메모리 영역 재사용 가능
Mat class 구성
- the matrix header (matrix size, the method for storing the data, the addr of the matrix, etc
- a pointer to the matrix (the matrix contains the pixel values )