Suppose H
is a vector,and F = fft(H,nfft)
.
I don't know how to choose an appropriate nfft which is the length of the fft sequence. And how to get the frequncy of each point in the fft sequence? I read an example in
http://www.mathworks.de/help/matlab/math/fast-fourier-transform-fft.html
It says the frequency vector is:
fv = (0:nfft-1)*fs/nfft.
fs is the sampling frequency. But how to decide the fs?
I would really be grateful if someone could explain me about these questions.
PS:I want to extract features from images.The feature is high order moments defined as follows:
M = sum (f_ j * |F(f_ j)| ) /sum ( |F(f_ j)| ) , j = 1:L/2
where M
is the moments, n
is the order of moments, F
is the FFT sequence, L
is the length of the FFT sequence, F(f_ j)
is the component of F
at frequency f_ j
. But I don't know how to get the frequency f_ j
.
*****supplement of my question******
Maybe I didn't explain my question clearly,I read it in a paper "BLIND IMAGE
STEGANALYSIS BASED ON RUN-LENGTH HISTOGRAM ANALYSIS". The author mentioned the frequency fj in section 2.3 . I'll be very grateful if anybody can read that part.