資源簡介
使用opencv 和c++ 計算圖片的mse和psnr
代碼片段和文件信息
#include?“cv.h“
#include?“math.h“
#include?“highgui.h“
#include?
#include?
#include?
using?namespace?cv;
using?namespace?std;
int?main()
{
IplImage?*x1?=?cvLoadImage(“11.jpg“0);
IplImage?*x2?=?cvLoadImage(“高斯7lvbo.jpg“0);
int?m?=?x1->width;
int?n?=?x1->height;
double?mse=0;
double?psnr=0;
double?tmp1=0;
double?tmp2=0;
評論
共有 條評論