initialization
-
[OpenCV] Mat() constructor 및 method를 이용한 초기화 방법Study/OpenCV 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);