Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Tags
more
Archives
Today
Total
관리 메뉴

일구공구

[OpenCV with C++]OpenCV 주요 클래스 본문

CE/OpenCV_C++

[OpenCV with C++]OpenCV 주요 클래스

일구공구 2021. 2. 23. 15:03

cv::Mat

  • 이미지를 저장하는 구조체!
    OpenCV 기본 구조체
class CV\_EXPORTS Mat  
{  
public: 
/*! includes several bit-fields:
     - the magic signature
     - continuity flag
     - depth
     - number of channels
 */
int flags;
//! the array dimensionality, >= 2
int dims;
//! the number of rows and columns or (-1, -1) when the array has more than 2 dimensions
int rows, cols;
//! pointer to the data
uchar* data;

//! pointer to the reference counter;
// when array points to user-allocated data, the pointer is NULL
int* refcount;

// other members

};


[참고]
- [Mat 공식 문서 찾아보기](https://docs.opencv.org/3.4/d3/d63/classcv\_1\_1Mat.html)
- [opencv 3.4 docs](https://docs.opencv.org/3.4/d3/d63/classcv_1_1Mat.html)
- [https://nextus.tistory.com/14](https://nextus.tistory.com/14)

'CE > OpenCV_C++' 카테고리의 다른 글

[c++]Ubuntu20.04 Opencv 설치  (0) 2021.02.17