小编vid*_*dzz的帖子

使用 openCV Mat c++ 加载图像

我想在 openCV 中使用 Mat 加载图像

我的代码是:

Mat I = imread("C:/images/apple.jpg", 0);
namedWindow( "Display window", CV_WINDOW_AUTOSIZE );// Create a window for display.
imshow( "Display window", I ); 
Run Code Online (Sandbox Code Playgroud)

我在消息框中收到以下错误:

Unhandled exception at 0x70270149 in matching.exe: 0xC0000005: Access violation 
reading location 0xcccccccc.
Run Code Online (Sandbox Code Playgroud)

请注意,我包括:

#include <cv.h>
#include <cxcore.h>
#include <highgui.h>
#include <iostream>
#include <math.h>
Run Code Online (Sandbox Code Playgroud)

c++ opencv loadimage mat

8
推荐指数
2
解决办法
5万
查看次数

标签 统计

c++ ×1

loadimage ×1

mat ×1

opencv ×1