日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

数字图像处理实验(13):PROJECT 05-04,Parametric Wiener Filter

發(fā)布時間:2025/3/21 编程问答 19 豆豆
生活随笔 收集整理的這篇文章主要介紹了 数字图像处理实验(13):PROJECT 05-04,Parametric Wiener Filter 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

實驗要求:

Objective:
To understand the high performance of the parametric Wiener Filter in image restoration when there are additive noise after the image degradation.
Main requirements:
Ability of programming with C, C++, or Matlab.
Instruction manual:
(a) Implement a blurring filter as in Eq. (5.6-11).
(b) Blur image 5.26(a) in the +45o direction using T = 1, as in Fig. 5.26(b).
(c) Add Gaussian noise of 0 mean and variance of 10 pixels to the blurred image.
(d) Restore the image using the parametric Wiener filter given in Eq. (5.8-3).

本實驗屬于圖像復原技術(shù),使用參數(shù)維納濾波進行圖像復原。實驗中向圖像添加了高斯噪聲和運動模糊,最后用參數(shù)維納濾波器復原圖像。

% close all; clc; clear all;% 讀取圖像 img = imread('Fig5.26(a).jpg'); img = im2double(img); figure; subplot(2,3,1); imshow(img); title('original image');% 模糊圖像 PSF = fspecial('motion', 30, 45); img1 = imfilter(img, PSF, 'conv', 'circular'); subplot(2,3,2); imshow(img1); title('filtered image');% 添加高斯噪聲 noise_var = 0.001; img2 = imnoise(img1, 'gaussian', 0, noise_var); subplot(2,3,3); imshow(img2); title('add gaussian noise');% 參數(shù)維納濾波,NSR直接給0 % Specifying 0 for the NSR is equivalent to creating an ideal inverse filter. % img3 = deconvwnr(img2, PSF, 0.012); img3 = deconvwnr(img2, PSF, 0.0); subplot(2,2,3); imshow(img3); title('Restoration of Blurred, Noisy Image Using NSR = 0');% 參數(shù)維納濾波,計算方差 % img = double(img); estimated_NSR = noise_var / var(img(:)); img4 = deconvwnr(img2, PSF, estimated_NSR); subplot(2,2,4); imshow(img4); title('Restoration of Blurred, Noisy Image Using Estimated NSR');

實驗結(jié)果:

上面一行的圖像分別是原始圖像,模糊后的圖像,以及添加高斯噪聲后的圖像;
下面一行的圖像分別是調(diào)用維納濾波器的兩種情況,一個是不給參數(shù),默認直接給0,另一個是使用方差計算參數(shù)后調(diào)用維納濾波器得到的正確濾波結(jié)果。

總結(jié)

以上是生活随笔為你收集整理的数字图像处理实验(13):PROJECT 05-04,Parametric Wiener Filter的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。