#include<opencv2/opencv.hpp>
#include<iostream>
using namespace cv;
using namespace std;
int main(int argc, char** argv){
//Read the Image
Mat image = imread("F:\\All_Code\\C++\\101.jpg");
Mat temp_img, dst_img;
//**********************************
int length = image.cols;
int wideth = image.rows;
int channels = image.channels();
cout<<"image_length = "<<length<<","<<"image_wideth = "<<wideth<<","<<"image_channels"<<channels<<endl;
cout<<"size = "<<image.size<<endl;
}
OpenCv基础应用一
最新推荐文章于 2024-08-24 20:12:43 发布