#include <opencv2\opencv.hpp>
#include <iostream>
#include <string>
using namespace cv;
using namespace std;
int main()
{
IplImage* img = 0;
int height,width,step,channels;
uchar *data;
int i,j,k;
img=cvLoadImage("aa.jpg",CV_LOAD_IMAGE_COLOR);
//Mat img = imread("pp.jpg");
if(!img)
{
cout<<"error";
return -1;
}
// imshow("xx的靓照",img);
// waitKey();
height = img->height;
width = img-
#include <iostream>
#include <string>
using namespace cv;
using namespace std;
int main()
{
IplImage* img = 0;
int height,width,step,channels;
uchar *data;
int i,j,k;
img=cvLoadImage("aa.jpg",CV_LOAD_IMAGE_COLOR);
//Mat img = imread("pp.jpg");
if(!img)
{
cout<<"error";
return -1;
}
// imshow("xx的靓照",img);
// waitKey();
height = img->height;
width = img-