일구공구
[OpenCV with C++]OpenCV 주요 클래스 본문
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 |
---|