//1.OpenCV读取一张图片显示,并将其重写为灰度图#include <iostream> #include <opencv2/core/core.hpp> #include<opencv2/highgui/highgui.hpp> using namespace cv; using namespace std; int main() { Mat img=imread("E:/picture.jpg",CV_LOAD_IMAGE_GRAYSCALE);//读入一张图片 namedWindow("Test")...