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

📄 gfcheckfilter.m

📁 gaobor滤波工具 先转到频域再转回时域
💻 M
字号:
%GFCHECKFILTER Check filter parameters.%%   GFCHECKFILTER(F0,GAMMA,N,PT,PF)  Checks the constraints of the%   discrete Gabor filter for given parameters and prints out%   warning messages.%%     F0    - Central frequency%     GAMMA - Sharpness factor%     N     - Size of the filter%     PT    - Time domain percent factor%     PF    - Frequency domain Percent factor%%   Examples%%     gfcheckfilter(1/64, 1, 64, 0.998, 0.998);%%   See also GFCREATEFILTER, GFCREATEFILTERF.%% References:%   [1] Kamarainen, J.-K., Kyrki, V., Kalviainen, H., Gabor%       Features for Invariant Object Recognition, Research%       report 79, Department of Information Technology,%       Lappeenranta University of Technology %% Author(s):%    Joni Kamarainen <Joni.Kamarainen@lut.fi>%    Ville Kyrki <Ville.Kyrki@lut.fi>%% Copyright:%%   The Gabor Features in Signal and Image Processing Toolbox is%   Copyright (C) 2000 by Joni Kamarainen and Ville Kyrki.%function []=gfcheckfilter(f0,gamma,N,PT,PF)% Set checking valuesalpha = f0/gamma;nyqf = 0.5; % Nyquist frequency %% Checking Nyquist criterionif (f0 > nyqf)  warning('Nyquist criterion violated');end;%% Checking spatial constraints% Symmetric part of the filter must contain pt percent of the% full filter envelope fPT = erf(alpha*floor((N-1)/2));if (fPT < PT)  warning(['Spatial filter size may be too small. '...	   ' Requested minimum spatial envelope size is '...	   num2str(PT*100) ' percent and current size is '...	   num2str(100*fPT)]);end;%%  Checking frequency constraintsfPF = erf(pi/alpha*f0);if (fPF < PF)  warning(['Filter envelope insufficiently located in the frequency domain. '...	   ' Requested minimum envelope area inside domain is '...	   num2str(100*PF) ' percent and currently area is ' ...	   num2str(100*fPF)]);end;

⌨️ 快捷键说明

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