mexGetSPFBasisMatrixΒΆ

% mexGetSPFBasisMatrix: get SPF basis matrix with given spherical and radial orders, orientationMatrix, bVector
%
% Usage:
%   spfMatrix = mexGetSPFBasisMatrix(shOrder, radialOrder, orientationMatrix, bVector)
%   spfMatrix = mexGetSPFBasisMatrix(shOrder, radialOrder, orientationMatrix, bVector, params)
%
% Inputs:
%   shOrder:               SH order
%   radialOrder:           order in radial part
%   orientationMatrix :    orientation matrix where each row is an orientation (x,y,z), caresian format
%   bVector:               b values in a vector, each row is a b value
%   params.scale :         (optional) scale value for the SPF basis in radial part
%   params.tau:            (optional) tau value to calculate qVector from bVector, b=4\pi^2 \tau q^2
%   params.original:       (optional) true: (default) original SPF basis matrix
%                                     false: independent SPF basis matrix, considering E(0)=1
%
% Outputs:
%   spfMatrix:              each column is a SPF basis
%
% Copyright (c) 2013, Jian Cheng <jian.cheng.1983@gmail.com>
%