Study/OpenCV
[OpenCV] Mat() constructor 및 method를 이용한 초기화 방법
훈스~☆
2014. 1. 3. 13:21
1. Constructor를 이용한 방법
cv::Mat(int width, int height, int type, cv;:Scalar value);
ex) cv::Mat image(100, 100, CV_8UC3, cv::Scalar(0,0,0));
2. Method를 이용한 방법
ones(int width, int height, int type), zeros(int width, int height, int type)
ex) cv::Mat image = cv::Mat::zeros(100, 100, CV_8U);