您的位置:首页 > 编程语言 > C语言/C++

(原創) 如何計算SNR (signal-to-ratio)? (.NET) (C/C++) (C++/CLI) (GDI+) (Image Processing)

2006-12-20 18:47 585 查看
SNR公式如下
#include "stdafx.h"
10#include <iostream>
11#include <cmath>
12
13using namespace System::Drawing;
14using namespace System::Drawing::Imaging;
15using namespace std;
16
17// Convert RGB to gray level int
18int colorToInt(Color);
19
20// Calculate signal to ratio
21double SNR(Bitmap^, Bitmap^);
22
23
36// Convert RGB to gray level int
37
41
42// Calculate signal to ratio
43SNR of image:0.16249
請按任意鍵繼續 . . .

原圖



Noise圖片

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐