1 简介
2 部分代码
function [features] = extract(window,grid,X,filters)feature_size = prod(window)*numel(filters);% Current image features extraction [feature x index]if isempty(filters) f=X(grid); features = reshape(f,[size(f,1) * size(f,2) size(f,3)]);else features = zeros([feature_size size(grid,3)],'single'); for i = 1:numel(filters) f_l=conv2(X,filters{i},'same'); f=X-f_l; f=f(grid); f=reshape(f,[size(f,1)*size(f,2) size(f,3)]); features((1:size(f,1))+(i-1)*size(f,1),:)=f; endend
3 仿真结果
4 参考文献
[1]朱波, 李华, 高伟,等. 基于正则化稀疏表示的图像超分辨率算法[J]. 光电子.激光, 2013(10):2024-2030.
博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,相关matlab代码问题可私信交流。
部分理论引用网络文献,若有侵权联系博主删除。