int main() { Mat img; img=imread("/home/2b.jpeg", CV_LOAD_IMAGE_UNCHANGED); namedWindow("win", WINDOW_AUTOSIZE); imshow("win", img); for(int i=0; i< img.rows ;i++) { for(int j=0; j< img.cols ; j++) { cout<<setw(10)<<img.at<int>(i,j); } cout<<endl<<endl<<endl; } waitKey(0); return 0; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)