标签:
=================================
目录:
1. Mat像素操作
2. int类型mat转CV_8UC1,显示
3. OpenCV中使用SVM
=================================
1. Mat像素操作
int rows = lbp_image.rows; int cols = lbp_image.cols; int a = 0; for (int i = 0; i < rows; i++){ for (int j = 0; j < cols; j++){ a = lbp_image.at<int>(i, j); std::cout << a << endl; } }
2. int类型mat转CV_8UC1,显示
1 Mat copy_lbp_image; 2 lbp_image.convertTo(copy_lbp_image, CV_8UC1); 3 4 namedWindow("LBP_feature", 1); 5 imshow("LBP_feature", copy_lbp_image); 6 waitKey(0);
3. OpenCV中使用SVM
http://www.cnblogs.com/justany/archive/2012/11/23/2784125.html
标签:
原文地址:http://www.cnblogs.com/Michael-Xin/p/4691049.html