OpenCv基礎応用一

3203 ワード

#include
#include

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;
}