当前位置: 首页 > news >正文

【图像重建】图像超分辨重建MATLAB源代码(迭代步长自适应)matlab代码

​1 简介

Multi-image superresolution (SR) techniques produce a high-resolution image from several low-resolution observations. Previous reconstruction-based SR approaches focus more on the optimization models but have not adequately emphasized the mathematic solving techniques for this typically ill-conditioned and under-determined large scale problem. Since step size plays an important role in the iterative SR process, and there is a trade-off between less computation cost and higher accuracy, conven-tional SR methods either adopt a fixed step size to obtain a higher running speed, or use a computationally expensive line search algorithm to pursue an improvement in accuracy. Taking both cues into consideration, in this paper, we propose an adaptive line search strategy to realize the fast convergence of reconstruction-based SR. The approximate analytical expression of step size is introduced to prevent us from setting it empirically or running iterations to test a proper one. We further modify the proposed strategy to be more adaptive under different SR conditions. Using our strategy, one can accelerate the SR process and obtain the optimal solution with less iteration. Experiments are conducted on both synthetic datasets and real-world scenes. Results have demonstrated the effectiveness and outperformance of our proposed strategy compared with other line search strategies.

2 部分代码

clear all clc filename = 'Set'; files = dir(fullfile( filename,'*.bmp')); file_num = 2; % different number corresponds to defferent test images in 'Set' reg_term = 1; %regularization term: 1-BTV, 2-Tikhonov Image =imread([filename,'\',files(file_num).name]); SZ = size(size(Image)); if (SZ(2)==2) % turn grayscale image to RGB image for qw = 1:3 IMAGE (:,:,qw) = Image; end else IMAGE = Image; end %% Image Degradation D = [1,1;-2,1;-1,-3;3,-2]; % Shearing shift Gau = fspecial( 'gaussian', [3 3], 1); % Gaussian bluring kernel spf = 2; % sampling factor sigma2 = 1; % variation of noise LR = ImDegrate(IMAGE,D,Gau,spf,sigma2); % image degradation function %% Turn RGB to YCbCr, and only SR the Y component [~, ~, ~, M] = size(LR); for w = 1:M LR(:,:,:,w) = rgb2ycbcr(uint8( squeeze(LR(:,:,:,w)))); end maxiter = 10; % maximum number of iteration y1(:,:,:) = LR(:,:,1,:); y2(:,:,:) = LR(:,:,2,:); y3(:,:,:) = LR(:,:,3,:); HRitp1 = imresize(y1(:,:,1), spf, 'bicubic'); % bicubic interpolation HRitp1 = ImWarp(HRitp1, -D(1,1), -D(1,2)); % shift recovering I1 = Wang_SR(HRitp1, y1, D, Gau, spf, maxiter, reg_term); %Our proposed SR method HRitp2 = imresize(y2(:,:,1), spf, 'bicubic'); HRitp2 = ImWarp(HRitp2, -D(1,1), -D(1,2)); I2 = HRitp2; HRitp3 = imresize(y3(:,:,1), spf, 'bicubic'); HRitp3 = ImWarp(HRitp3, -D(1,1), -D(1,2)); I3 = HRitp3; ImZ(:, :, 1) = I1; ImZ(:, :, 2) = I2; ImZ(:, :, 3) = I3; ImZ = ycbcr2rgb(uint8( ImZ)); % Turn YCbCr to RGB figure; imshow( uint8( ImZ ) ); title('Wang et al.'); figure; imshow( uint8( IMAGE ) ); title('groundtruth'); %% Evaluation If = double(ImZ); %output image Is = double(IMAGE); %reference image [row,col,~]=size(If); %RMSE rmse=0; for color = 1:3 Ifc = If(:,:,color); Isc = Is(:,:,color); SSE=sum(sum((Ifc-Isc).^2)); rmsec=sqrt(SSE/(row*col)); rmse = rmse+rmsec/3; end rmse %PSNR psnr=0; for color = 1:3 Ifc = If(:,:,color); Isc = Is(:,:,color); maxIs = max(max(Isc)); minIs = min(min(Isc)); PSNRc = 10*log10((row*col*(maxIs-minIs)^2)/sum(sum((Ifc-Isc).^2))); psnr = psnr+PSNRc/3; end psnr %SSIM ssim=0; for color = 1:3 Ifc = uint8(If(:,:,color)); Isc = uint8(Is(:,:,color)); ssimc = cal_ssim(Ifc, Isc, 0, 0); ssim = ssim + ssimc/3; end ssim

3 仿真结果

4 参考文献

[1]朱翚. 利用MATLAB进行图像重建的算法研究[D]. 苏州大学, 2003.

部分理论引用网络文献,若有侵权联系博主删除。

http://www.jsqmd.com/news/1316703/

相关文章:

  • 2026重庆教学优质集训画室排行:实力机构盘点 - 奔跑123
  • 洛阳CMA甲醛检测公司公共卫生检测怎么选:国慷测研避坑指南 - 信誉隆金银铂奢回收
  • 【Bug已解决】FSDP2 fails due to KeyError: ‘lm_head.weight‘ 解决方案
  • 3步本地化解密:深度剖析QQ音乐加密格式转换技术
  • 【华为OD技术面试手撕真题】184、字符串的最大公因子 | 手撕真题+思路参考+代码解析(C C++ Java Python JS)(0ms)
  • 2026深圳美国私校申请避坑指南(高端申请与营销甄别版) - 互联网科技品牌测评
  • 2026 年至今,昌平热门的道路塌陷修补供货商哪家权威,你以为的路面补洞,其实藏着看不见的门道? - 鉴选官
  • 2026长沙考研寄宿优质机构深度盘点——长沙考翼考研凭什么成为本土考生首选? - 资讯综合
  • 黑河CMA甲醛检测公司公共卫生检测怎么选:国慷测研避坑指南 - 信誉隆金银铂奢回收
  • 2026国内实力油缸厂家推荐排行盘点 - 奔跑123
  • 青岛CMA甲醛检测公司公共卫生检测怎么选:国慷测研避坑指南 - 信誉隆金银铂奢回收
  • 5分钟快速上手:Jellyfin MetaTube插件智能元数据管理完全指南
  • 花了三年拍了十几家写真馆,我终于把安娜写真馆和这几家藏不住的宝藏店一起告诉你了 - 资讯综合
  • 长春除甲醛公司母婴除醛技术揭秘:金耀母婴除甲醛分析避坑指南 - 信誉隆金银铂奢回收
  • 2026 年新发布:武冈优秀的添加型光亮剂制造厂怎么联系,把塑料件擦得亮得能照出人脸的那玩意儿,你知道怎么选才不踩坑吗?-广胜橡塑 - 行业推荐官[官方】--
  • 【Bug已解决】Degraded performance when resuming from checkpoint 解决方案
  • TRAE Work Design AI落地新解法 - 智慧园区
  • 衡水CMA甲醛检测公司公共卫生检测怎么选:国慷测研避坑指南 - 信誉隆金银铂奢回收
  • verilog HDLBits刷题[Finite State Machines]“Exams/ece241 2014 q5b”---Q5b:Serial two‘s complementer
  • Switch游戏文件管理终极指南:31个功能一站式解决你的所有烦恼
  • 2026年8月湖南省移动1000M融合宽带怎么报装 - 找卡家园
  • 泰州除甲醛公司母婴除醛技术揭秘:金耀母婴除甲醛分析避坑指南 - 信誉隆金银铂奢回收
  • 【单片机毕业设计推荐】基于 STM32 的智能温室环境监测与自动调控系统设计 基于 STM32 的农田土壤墒情与环境温湿度智能管控装置设计(011705)
  • 漯河CMA甲醛检测公司测甲醛中心怎么选:安鑫母婴甲醛检测标准、流程、避坑指南 - 信誉隆金银铂奢回收
  • 清远CMA甲醛检测公司公共卫生检测怎么选:国慷测研避坑指南 - 信誉隆金银铂奢回收
  • 2026 年乐山正规的水性聚氨酯砂浆自流平材料施工一体化施工厂家哪个好,别再傻傻分开做了,这玩意儿能让地坪施工省一半力还没接缝 - 实业推荐官【官方】
  • 2026 上海子女抚养权律师实战评测|婚姻家事纠纷避坑指南,律所选聘全维度参考 - 好物分享知识传播
  • 绵阳除甲醛公司母婴除醛技术揭秘:金耀母婴除甲醛分析避坑指南 - 信誉隆金银铂奢回收
  • verilog HDLBits刷题[Finite State Machines]“Exams/2014 q3fsm”---Q3a:FSM
  • Dism++系统优化实战:3大场景深度清理Windows性能瓶颈