programing/OpenCV

[OpenCV] Mat::create()

쪽제비 2016. 10. 20. 18:17

Mat::create() 메서드는 rows, cols, type, size, ndims 등에 의해서 새로운Mat 클래스 행렬을 생성.


void Mat::create(int rows, int cols, int type);

void Mat::create(Size size, int type);

void Mat::create(int ndims, const int* sizes, int type);



예제


결과







'programing > OpenCV' 카테고리의 다른 글

cv::Mat copy to std::vector  (0) 2016.11.23
[OpenCV] Mat 이미지 자르기  (0) 2016.10.21
[OpenCV] Mat 클래스 행렬 생성 2  (0) 2016.10.20
[OpenCV] Mat 클래스 행렬 생성 1  (0) 2016.10.20
[OpenCV] Range 클래스  (0) 2016.10.20