⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 resampleimg.m

📁 a matlab code on duper resolution
💻 M
字号:
% img=ResampleImg(img, roi, d) 
%
% Resamples the image at the given ROI and displacement
function img=ResampleImg(img, roi, d)

% Compute coordinates for resampling
[X,Y]=meshgrid(roi(2):roi(4), roi(1):roi(3));

% Add affine displacement to coordinates
D=d*[X(:)';Y(:)' ; ones(1,length(X(:)))];

% Update coorindates with displacement
X = X-reshape(D(1,:), size(X));
Y = Y-reshape(D(2,:), size(X));

% Resample the image
img=interp2(img, X, Y);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -