当前位置:网站首页>[image denoising] image denoising based on bicube interpolation and sparse representation matlab source code
[image denoising] image denoising based on bicube interpolation and sparse representation matlab source code
2022-07-26 06:32:00 【matlab_ dingdang】
1 Content introduction
This paper solves the problem of generating super-resolution from a single low resolution input image (SR) The problem with images . We solve this problem from the perspective of compressed sensing . The low resolution image is regarded as the down sampled version of the high resolution image , Suppose that the patch has a sparse representation relative to the over complete dictionary of the prototype signal atom . The principle of compressed sensing ensures that under mild conditions , Sparse representation can be correctly recovered from the down sampled signal . We will prove the effectiveness of sparsity as a priori for the specification of otherwise ill posed super-resolution problems . We further show that , A small group of original patches randomly selected from training images with similar statistical properties to the input image can usually be used as a good dictionary , Because the calculated representation is sparse , The restored high-resolution image is competitive and even better than others SR Method generated image .
2 Simulation code
% =========================================================================% Simple demo codes for image super-resolution via sparse representation%% Reference% =========================================================================clear all; clc;% read test imageim_l = imread('Data/Testing/input.bmp');% set parameterslambda = 0.2; % sparsity regularizationoverlap = 4; % the more overlap the better (patch size 5x5)up_scale = 2; % scaling factor, depending on the trained dictionarymaxIter = 20; % if 0, do not use backprojection% load dictionaryload('Dictionary/D_1024_0.15_5.mat');% change color space, work on illuminance onlyim_l_ycbcr = rgb2ycbcr(im_l);im_l_y = im_l_ycbcr(:, :, 1);im_l_cb = im_l_ycbcr(:, :, 2);im_l_cr = im_l_ycbcr(:, :, 3);% image super-resolution based on sparse representation[im_h_y] = ScSR(im_l_y, 2, Dh, Dl, lambda, overlap);[im_h_y] = backprojection(im_h_y, im_l_y, maxIter);% upscale the chrominance simply by "bicubic"[nrow, ncol] = size(im_h_y);im_h_cb = imresize(im_l_cb, [nrow, ncol], 'bicubic');im_h_cr = imresize(im_l_cr, [nrow, ncol], 'bicubic');im_h_ycbcr = zeros([nrow, ncol, 3]);im_h_ycbcr(:, :, 1) = im_h_y;im_h_ycbcr(:, :, 2) = im_h_cb;im_h_ycbcr(:, :, 3) = im_h_cr;im_h = ycbcr2rgb(uint8(im_h_ycbcr));% bicubic interpolation for referenceim_b = imresize(im_l, [nrow, ncol], 'bicubic');% read ground truth imageim = imread('Data/Testing/gnd.bmp');% compute PSNR for the illuminance channelbb_rmse = compute_rmse(im, im_b);sp_rmse = compute_rmse(im, im_h);bb_psnr = 20*log10(255/bb_rmse);sp_psnr = 20*log10(255/sp_rmse);% show the imagesfigure,subplot(131),imshow(im_l);title(' Original picture ')subplot(132),imshow(im_h);title(['PSNR for Sparse representation ',num2str( sp_psnr)]);subplot(133), imshow(im_b);title(['PSNR for Bicubic interpolation ',num2str(bb_psnr)]);
3 Running results

4 reference
[1] Kingship , Publicize , Li Yanfeng , etc. . An image denoising algorithm based on sparse representation [J]. Industrial instruments and automation devices , 2013.
[2] Liu Meijuan . be based on MATLAB Research on image denoising based on [C]// Challenges and opportunities :2010 Colleges and universities GIS Forum . 0.
[3] Guo Xiaofeng , Zhao Zheng Chen , Liushengqing , etc. . An image denoising method and system based on image sparse representation :, CN109727219A[P]. 2019.
About bloggers : Good at intelligent optimization algorithms 、 Neural networks predict 、 signal processing 、 Cellular automata 、 The image processing 、 Path planning 、 UAV and other fields Matlab Simulation , relevant matlab Code problems can be exchanged by private letter .
Some theories cite network literature , If there is infringement, contact the blogger to delete .
边栏推荐
- Leetcode 347. top k high frequency elements
- Force buckle - 3. Longest substring without repeated characters
- [day_060423] convert string to integer
- Gdown Access denied:Cannot retrieve the public link of the file.
- 【Day_07 0425】Fibonacci数列
- [untitled]
- [C language] file operation
- 将一个正整数分解质因数,要求分解成尽可能小的多个的因数。
- 英语句式参考纯享版 - 状语从句
- CCTV dialogue ZTE: why must the database be in your own hands?
猜你喜欢

Leetcode:934. The shortest Bridge

Input the records of 5 students (each record includes student number and grade), form a record array, and then output them in order of grade from high to low The sorting method adopts selective sortin

力扣5: 最长回文子串

【无标题】

Multi target detection

【pytorch】图片增广

How can machinery manufacturing enterprises do well in production management with the help of ERP system?

【Day_06 0423】不要二

Vision Transformer 必读系列之图像分类综述

移动web
随机推荐
PG vacuum auto vacuum
JVM class loading and GC garbage collection mechanism
Go channel
What is KVM? What is KVM virtual machine?
[day_020419] sort subsequence
【Day06_0423】C语言选择题
[pytorch] picture enlargement
Go 的通道channel
MySQL multi table query introduction classic case
C language file operation
C语言进阶——可存档通讯录(文件)
【Day_05 0422】连续最大和
[day_070425] legal bracket sequence judgment
[1]数学建模基础入门知识
性能测试包括哪些方面?分类及测试方法有哪些?
[day03_0420] C language multiple choice questions
[day_060423] convert string to integer
flex布局
【pytorch】CNN实战-花朵种类识别
【Day05_0422】C语言选择题