opencv3自定义窗口内显示多张图片

来源:互联网 发布:java底层框架 编辑:程序博客网 时间:2024/05/17 07:12
#include <opencv2/opencv.hpp>using namespace std;using namespace cv;//包含cv命名空间int main(){    /*     *     * 多张图像载入后在自定义窗口内显示     */    Mat one = imread("D:\\1.png");//创建一个自定义窗口    namedWindow("1.picture one");//窗口显示图片    imshow("1.picture one",one);    Mat two = imread("D:\\2.png");    Mat three = imread("D:\\3.png");    namedWindow("2.picture two");    imshow("2.picture two",two);    namedWindow("3.picture three");    imshow("3.picture three",three);    waitKey();    return 0;}
0 0