steer.m

来自「加州大学伯克利分校的一个车俩识别程序, 用matlab实现」· M 代码 · 共 27 行

M
27
字号
function [G2,H2] = steer(theta,basis)%[G2,H2] = steer(theta,basis)%% returns the filter response steered at a particular%% angle theta over the whole image plane.  theta can%% be either a matrix the same size as the image or a%% scalar value.  in the case of a scalar value then%% we return the response at that angle everywhere%%%% charless fowlkes, 2000  if (size(theta) == 1)     theta = theta*ones(size(basis.Ga));  end;  ct = cos(theta);  st = sin(theta);  G2 = ct.*ct.*basis.Ga - 2.*ct.*st.*basis.Gb + st.*st.*basis.Gc;  H2 = ct.*ct.*ct.*basis.Ha - 3.*ct.*ct.*st.*basis.Hb ...         + 3.*ct.*st.*st.*basis.Hc - st.*st.*st.*basis.Hd;  

⌨️ 快捷键说明

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