资源简介
BM3D去噪算法+图像实例,matlab源码,亲测可实现

代码片段和文件信息
function [PSNR y_est] = BM3D(y z sigma profile print_to_screen)
% 代码的模板基于http://www.cs.tut.fi/~foi/GCF-BM3D此网址提供的BM3D.m,
% 此文件将原文件中bm3d_thr和bm3d_wiener两个函数用matlab语言进行了实现,并附在最后,
% 由于原文件有些参数并未体现在论文思想中,这一情况同样体现在原文件的bm3d_thr和bm3d_wiener两个函数上,
% 又或者是我理解的偏差,导致编写的bm3d_thr和bm3d_wiener两个函数有部分参数并未用到,不过不影响函数使用,
% 另外,在调试过程中也为了提高PSNR,修改了部分参数,
% 此文件使用时,将预处理的图像与此文件放在同一个文件夹下,修改image_name(100行左右)使其与图像文件名一致,
% 可通过修改约位于128行的sigma修改方差
% 另外,也许是由于算法问题,此文件处理图像较慢,256x256需要2到3分钟,512x512需要8到15分钟,还请注意
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% BM3D is algorithm for attenuation of additive white Gaussian noise from
% grayscale images. This algorithm reproduces the results from the article:
%
% [1] K. Dabov A. Foi V. Katkovnik and K. Egiazarian “Image denoising
% by sparse 3D transform-domain collaborative filtering“
% IEEE Transactions on Image Processing December 2006 in review
% preprint at http://www.cs.tut.fi/~foi/GCF-BM3D.
%
% FUNCTION INTERFACE:
%
% [PSNR y_est] = BM3D(y z sigma profile print_to_screen)
%
% ! The function can work without any of the input arguments
% in which case the internal default ones are used !
%
% BASIC USAGE EXAMPLES:
%
% Case 1) Using the default parameters (i.e. image name sigma etc.)
%
% [PSNR y_est] = BM3D;
%
% Case 2) Using an external noisy image:
%
% % Read a grayscale image and scale its intensities in range [01]
% y = im2double(imread(‘Cameraman256.png‘));
% % Generate the same seed used in the experimental results of [1]
% randn(‘seed‘ 0);
% % Standard deviation of the noise --- corresponding to intensity
% % range [0255] despite that the input was scaled in [01]
% sigma = 25;
% % Add the AWGN with zero mean and standard deviation ‘sigma‘
% z = y + (sigma/255)*randn(size(y));
% % Denoise ‘z‘. The denoised image is ‘y_est‘ and ‘NA = 1‘ because
% % the true image was not provided
% [NA y_est] = BM3D(1 z sigma);
% % Compute the putput PSNR
% PSNR = 10*log10(1/mean((y(:)-y_est(:)).^2))
% % show the noisy image ‘z‘ and the denoised ‘y_est‘
% figure; imshow(z);
% figure; imshow(y_est);
%
% Case 3) If the original image y is provided as the first input
% argument then some additional information is printed (PSNRs
% figures etc.). That is “[NA y_est] = BM3D(1 z sigma);“ in the
% above code should be replaced with:
%
% [PSNR y_est] = BM3D(y z sigma);
%
%
% INPUT ARGUMENTS (OPTIONAL):
%
% 1) y (matrix M x N): Noise-free image (needed for computing PSNR)
% replace with the scalar 1 if not available.
% 2) z (matrix M x N): Noisy image (intensities in range [01] or [0255])
% 3) sigma (double) : Std. dev. of the noise (corresponding to intensities
% in range [0255] even if the range of z is [01])
% 4) profile (char) : ‘np‘ -->
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-04-08 20:21 BM3D\
文件 6148 2019-04-08 20:21 BM3D\.DS_Store
目录 0 2019-04-08 20:22 __MACOSX\
目录 0 2019-04-08 20:22 __MACOSX\BM3D\
文件 120 2019-04-08 20:21 __MACOSX\BM3D\._.DS_Store
文件 32050 2019-04-03 20:02 BM3D\BM3D.m
文件 232 2019-04-03 20:02 __MACOSX\BM3D\._BM3D.m
目录 0 2019-04-03 20:00 BM3D\BM3D_images\
文件 177762 2005-11-14 08:14 BM3D\BM3D_images\boat.png
目录 0 2019-04-08 20:22 __MACOSX\BM3D\BM3D_images\
文件 212 2005-11-14 08:14 __MACOSX\BM3D\BM3D_images\._boat.png
文件 33216 2006-12-30 12:59 BM3D\BM3D_images\montage.png
文件 212 2006-12-30 12:59 __MACOSX\BM3D\BM3D_images\._montage.png
文件 429132 2005-12-08 11:21 BM3D\BM3D_images\image_F16_512rgb.png
文件 212 2005-12-08 11:21 __MACOSX\BM3D\BM3D_images\._image_F16_512rgb.png
文件 476195 2005-10-29 12:18 BM3D\BM3D_images\image_Lena512rgb.png
文件 212 2005-10-29 12:18 __MACOSX\BM3D\BM3D_images\._image_Lena512rgb.png
文件 185727 2005-11-14 08:14 BM3D\BM3D_images\barbara.png
文件 212 2005-11-14 08:14 __MACOSX\BM3D\BM3D_images\._barbara.png
文件 110937 2005-10-29 12:19 BM3D\BM3D_images\image_House256rgb.png
文件 212 2005-10-29 12:19 __MACOSX\BM3D\BM3D_images\._image_House256rgb.png
文件 37559 2006-04-17 11:20 BM3D\BM3D_images\Cameraman256.png
文件 212 2006-04-17 11:20 __MACOSX\BM3D\BM3D_images\._Cameraman256.png
文件 34985 2005-11-14 08:14 BM3D\BM3D_images\house.png
文件 212 2005-11-14 08:14 __MACOSX\BM3D\BM3D_images\._house.png
文件 153785 2006-04-17 11:20 BM3D\BM3D_images\Lena512.png
文件 212 2006-04-17 11:20 __MACOSX\BM3D\BM3D_images\._Lena512.png
文件 184561 2006-06-06 20:48 BM3D\BM3D_images\fingerprint.png
文件 212 2006-06-06 20:48 __MACOSX\BM3D\BM3D_images\._fingerprint.png
文件 209817 2006-12-30 12:53 BM3D\BM3D_images\man.png
文件 212 2006-12-30 12:53 __MACOSX\BM3D\BM3D_images\._man.png
............此处省略13个文件信息
相关资源
- MATLAB小波软阈值去噪代码33473
- 引导图像滤波器 Matlab实现
- 基于matlab的窗函数法FIR数字滤波器设
- 有源电力滤波器的Matlab仿真_高勇
- 均值滤波和FFT频谱分析Matlab代码
- KF+EKF matlab程序实现
- 基于FPGA分布式算法FIR滤波器verilog代码
- IIR数字滤波器设计实验报告
- LMS语音信号去噪matlab代码
- RPCA图像去噪算法
- 卡尔曼滤波MATLAB代码170027
- 最小二乘滤波算法正弦波
- 高压直流输电系统的滤波器设计及仿
- 高压直流输电系统的滤波器设计及S
- 基于MATLAB的心电信号分析及滤波
- 加入噪声的中值滤波代码
- 小波滤波,可用于心电信号、脉搏波
- 基于卡尔曼滤波的三种经典室内定位
- 数字滤波器的MATLAB与FPGA实现——杜勇
- 基于matlab的dicom、nii文件读取,去噪增
- 傅里叶变化频谱图及频域滤波
- 图像处理---matlab
- hsv空间双边滤波去雾MATLAB代码
- 基于卡尔曼滤波的PID控制
- 基于 MATLAB 的滤波器设计 (fdatool使用
- 基于FPGA的自适应滤波器的实现
- bm3d的matlab代码
- EKF-UKF-PF 扩展卡尔曼-无迹卡尔曼-粒子
- 有关同态滤波的相关资料及matlab代码
-
Simuli
nk的低通数字滤波器的仿真分析
评论
共有 条评论