행렬의 생성과 초기화 다음은 Mat 클래스 정의 중 생성과 초기화의 일부분 코드이다. class Mat { public: Mat(); // 1) Mat(int rows, int cols, int type); // 2) Mat(Size size, int type); // 3) Mat(int rows, int cols, int type, const Scalar& s); // 4) Mat(Size size, int type, const Scalar& s); // 5) Mat(int rows, int cols, int type, void* data, size_t step = AUTO_STEP); Mat(Size size, int type, void* data, size_t step = AUTO_STEP); //..