High Angular Resolution Imaging (HARDI) can better explore the complex micro-structure of white matter compared to Diffusion Tensor Imaging (DTI). Orientation Distribution Function (ODF) in HARDI is used to describe the probability of the fiber direction. There are two type definitions of the ODF, which were respectively proposed in Q-Ball Imaging (QBI) and Diffusion Spectrum Imaging (DSI). Some analytical reconstructions methods have been proposed to estimate these two type of ODFs from single shell HARDI data. However they all have some assumptions and intrinsic modeling errors. In this article, we propose, almost without any assumption, a uniform analytical method to estimate these two ODFs from DWI signals in q space, which is based on Spherical Polar Fourier Expression (SPFE) of signals. The solution is analytical and is a linear transformation from the q-space signal to the ODF represented by Spherical Harmonics (SH). It can naturally combines the DWI signals in different Q-...