@author:Donald-Hu @theme:LPQ(Local Phase Quantization )局部相位量化 @time:2016/8/9
LPQ算法的matlab实现如下(代码引用自UNIVERSITY OF OULU,DEPARTMENT OF COMPUTER SCIENCE AND ANGINEERING):
function LPQdesc = lpq(img,winSize,decorr,freqestim,mode)
% Funtion LPQdesc=lpq(img,winSize,decorr,freqestim,mode) computes the Local Phase Quantization (LPQ) descriptor
% for the input image img. Descriptors are calculated using only valid pixels i.e. size(img)-(winSize-1).
%
% Inputs: (All empty or undefined inputs will be set to default values)
% img = N*N uint8 or double, format gray scale image to be analyzed.
% winSize = 1*1 double, size of the local window. winSize must be odd number and greater or equal to 3 (default winSize=3).
% decorr = 1*1 double, indicates whether decorrelation is used or not. Possible values are:
% 0 -> no decorrelation,
% (default) 1 -> decorrelation
% freqestim = 1*1 double, indicates which method is used for local frequency estimation. Possible values are:
% (default) 1 -> STFT with uniform window (corresponds to basic version of LPQ)
% 2 -> STFT with Gaussian window (equals also to Gaussian quadrature filter pair)
% 3 -> Gaussian derivative quadrature filter pair.
% mode = 1*n char, defines the desired output type. Possible choices are:
% (default) 'nh' -> normalized histogram of LPQ codewords (1*256 double vector, for which sum(result)==1)
% 'h' -> un-normalized histogram of LPQ codewords