PEAK2DQUAD find quadratically-interpolated peak in a 2D array Note: This routine has been superceeded by quadpeak Inputs: Z(m,n) is the input array Outputs: V is the peak value XY(2,1) is the position of the peak (in fractional subscript values) T is -1, 0, +1 for maximum, saddle point or minimum M defines the fitted quadratic: z = [x y 1]*M*[x y 1]'

- quadpeak PEAK2DQUAD find quadratically-interpolated peak in a N-D array

0001 function [v,xy,t,m]=peak2dquad(z) 0002 %PEAK2DQUAD find quadratically-interpolated peak in a 2D array 0003 % 0004 % Note: This routine has been superceeded by quadpeak 0005 % 0006 % Inputs: Z(m,n) is the input array 0007 % 0008 % Outputs: V is the peak value 0009 % XY(2,1) is the position of the peak (in fractional subscript values) 0010 % T is -1, 0, +1 for maximum, saddle point or minimum 0011 % M defines the fitted quadratic: z = [x y 1]*M*[x y 1]' 0012 0013 % Copyright (C) Mike Brookes 2008 0014 % Version: $Id: peak2dquad.m 713 2011-10-16 14:45:43Z dmb $ 0015 % 0016 % VOICEBOX is a MATLAB toolbox for speech processing. 0017 % Home page: http://www.ee.ic.ac.uk/hp/staff/dmb/voicebox/voicebox.html 0018 % 0019 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0020 % This program is free software; you can redistribute it and/or modify 0021 % it under the terms of the GNU General Public License as published by 0022 % the Free Software Foundation; either version 2 of the License, or 0023 % (at your option) any later version. 0024 % 0025 % This program is distributed in the hope that it will be useful, 0026 % but WITHOUT ANY WARRANTY; without even the implied warranty of 0027 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0028 % GNU General Public License for more details. 0029 % 0030 % You can obtain a copy of the GNU General Public License from 0031 % http://www.gnu.org/copyleft/gpl.html or by writing to 0032 % Free Software Foundation, Inc.,675 Mass Ave, Cambridge, MA 02139, USA. 0033 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0034 0035 [v,xy,t,m]=quadpeak(z);

Generated on Mon 06-Aug-2018 14:48:32 by