尧图网络 高端网站定制 · 原创设计
免费咨询热线
400-888-6620
免费获取方案
【图像重建】图像超分辨重建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 rmse0; for color 1:3 Ifc If(:,:,color); Isc Is(:,:,color); SSEsum(sum((Ifc-Isc).^2)); rmsecsqrt(SSE/(row*col)); rmse rmsermsec/3; end rmse %PSNR psnr0; 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 psnrPSNRc/3; end psnr %SSIM ssim0; for color 1:3 Ifc uint8(If(:,:,color)); Isc uint8(Is(:,:,color)); ssimc cal_ssim(Ifc, Isc, 0, 0); ssim ssim ssimc/3; end ssim3 仿真结果4 参考文献[1]朱翚. 利用MATLAB进行图像重建的算法研究[D]. 苏州大学, 2003.部分理论引用网络文献若有侵权联系博主删除。
RELATED

相关推荐

破除带宽墙:投机采样(Speculative Decoding)与 SGLang 极致推理实战

破除带宽墙:投机采样(Speculative Decoding)与 SGLang 极致推理实战

在 LLM 推理服务(LLM Serving)中,许多开发者常陷入一个误区:认为影响大模型单字生成延迟(TPOT, Time Per Output Token)的主要因素是 GPU 的算力(FLOPs)。 然而实测表明,…

📅 2026/9/1 1:44:44
[C++11/内存管理] 彻底终结 async 回调 this 悬空与 Double-Free 物理崩溃:std::enable_shared_from_this 与 shared_from_this

[C++11/内存管理] 彻底终结 async 回调 this 悬空与 Double-Free 物理崩溃:std::enable_shared_from_this 与 shared_from_this

导读摘要:在现代 C 高并发网络框架(如 LanBus 数据网关)与实时音视频处理终端(如 STTOSView 音频帧调度)中,将对象自身投递给异步线程或回调函数时,开发者常陷于“裸 this 传递引发 Use-After-F…

📅 2026/9/5 22:02:45
技术指南:如何安全导出浏览器Cookie实现命令行工具集成

技术指南:如何安全导出浏览器Cookie实现命令行工具集成

技术指南:如何安全导出浏览器Cookie实现命令行工具集成 【免费下载链接】Get-cookies.txt-LOCALLY Get cookies.txt, NEVER send information outside. 项目地址: https://gitcode.com/gh_mirrors/ge/Get-cookies.txt-LOCALLY 在开发自动化脚本、进行Web爬虫…

📅 2026/9/5 2:30:26
MORE NEWS

更多资讯

📰

Apache Thrift 的 Common Lisp 客户端/服务端开发完全指南:从 IDL 翻译到 RPC 实战

Apache Thrift 的 Common Lisp 客户端/服务端开发完全指南:从 IDL 翻译到 RPC 实战 【免费下载链接】thrift Apache Thrift 项目地址: https://gitcode.com/gh_mirrors/thrift2/thrift 导读 本文基于 Apache Thrift 仓库中 lib/cl/README.md 官方文档&#…

📰

Genex词法分析器深度解析:状态机如何精准切分复杂规则文本

Genex词法分析器深度解析:状态机如何精准切分复杂规则文本 【免费下载链接】genex-cj 生成表达式(Generate Expression,简称:Genex或GE)是一款用于按照指定语法规则随机或固定生成数据的功能库。主要适用于依赖规则数据…

📰

PaddleHub 语言模型(Language Model)模块实战指南:词嵌入、语义匹配与预训练语义模型全解析

人工智能大模型微调模型推理服务 【免费下载链接】PaddleFormers PaddleFormers is an easy-to-use library of pre-trained large language model zoo based on PaddlePaddle. 项目地址: https://gitcode.com/gh_mirrors/pa/PaddleFormers 点击查看 免费下载 本指…

📰

openFrameworks 图像抠色实战:用像素级遍历实现蓝幕(Chroma Key)算法

图形学音视频 【免费下载链接】openFrameworks openFrameworks is a community-developed cross platform toolkit for creative coding in C. 项目地址: https://gitcode.com/gh_mirrors/op/openFrameworks 点击查看 免费下载 导读 本篇技术指南以 openFramework…

📰

tchMaterial-parser:一键批量下载电子课本PDF

tchMaterial-parser:一键批量下载电子课本PDF 【免费下载链接】tchMaterial-parser 国家中小学智慧教育平台 电子课本下载工具,帮助您从智慧教育平台中获取电子课本的 PDF 文件网址并进行下载,让您更方便地获取课本内容。 项目地址: https:…

📰

输入的“字符串”实际上是一个由 ASCII 字符组成的十六进制字符串,且 LabVIEW 在这里使用了小端字节序(Little-Endian)转换或者按字节/半字反转的逻辑

一、 关键解析逻辑纠正 输入的“字符串”实际上是一个由 ASCII 字符组成的十六进制字符串,且 LabVIEW 在这里使用了小端字节序(Little-Endian)转换或者按字节/半字反转的逻辑: **14 偏移量,长度 2**: 截取到 ASCII 字符串 "6345"。 字节反转(由于每 2 个字符…

TODAY

今日更新

THIS WEEK

本周精选

THIS MONTH

本月热门

读完文章,想聊聊您的网站?

告诉我们您的行业与需求,资深顾问一对一梳理方案与报价,全程免费。

📞 💬