FINDWEIGHT
find suitable weights on pseudo-polar grids in basis funtions.
Contents
Description
[W,W0,W1,W2,Q,B,QH] = FINDWEIGHT(P,N,NONNEG) find weights on pseudo-polar grid in terms of basis functions, P is generated from the routine basisFuntion(N,R,Choice), N is the original image size,
NONNEG = 'forceNN1', use fnnls to find nonnegative weights, w = w0; NONNEG = 'forceNN2', use lsqnonneg to find nonnegative weights, w = w2; NONNEG = otherwise, weights can be negative, w = w1.
Q = qh*qh';w, w0, w1, w2 are obtained by solving the least square problem Qw = b; qh is the linear conditions on the weights.
Examples
N = 64; R = 2; Choice = 1;
P = basisFunction(N,R,Choice);
[w,w0,w1,w2] = findWeight(P,N,'forceNN2');
See also
CONDW, ERRORW_RANDOM, LOADW, SAVEW, WEIGHTGENERATE, PPFT, ADJPPFT, BASISFUNCTION. FNNLS.
Copyright
Copyright (C) 2011. Xiaosheng Zhuang, University of Osnabrueck