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

📄 rotatev.m

📁 sfrmat is a Matlab function that provides a spatial frequency response* (SFR) from a digital image f
💻 M
字号:
function [a, nlin, npix, rflag] = rotatev(a)% [a, nlin, npix, rflag] = rotatev(a)    Rotate array%% Rotate array so that long dimensions is vertical (line) drection% a = input array(npix, nlin, ncol)% nlin, npix are after rotation if any% flag = 0 no roation, = 1 rotation was performed%% Peter Burns 5 Aug. 2002% Copyright (c) International Imaging Industry Associationdim = size(a);nlin = dim(1);npix = dim(2);if size(dim)==[1 2];  ncol =1; else;  ncol = dim(3); end; rflag =0;if npix>nlin; rflag =1; b    = zeros(npix, nlin, ncol); temp = zeros(npix, nlin);                     for i=1:ncol;  temp = a(:, :, i)';  b(:,:,i) = temp; end; a = b;  temp=nlin;  nlin = npix;  npix = temp;end;

⌨️ 快捷键说明

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