python提取图片频谱_Python时频谱图

Plot a spectrogram.

Call signature:

specgram(x, NFFT=256, Fs=2, Fc=0, detrend=mlab.detrend_none,

window=mlab.window_hanning, noverlap=128,

cmap=None, xextent=None, pad_to=None, sides='default',

scale_by_freq=None, mode='default', scale='default',

**kwargs)

Compute and plot a spectrogram of data in x. Data are split into NFFT length segments and the spectrum of each section

is computed. The windowing function window is applied to each segment,

and the amount of overlap of each segment is specified with noverlap.

The spectrogram is plotted as a colormap (using imshow).

x: 1-D array or sequence Array or sequence containing the data

你可能感兴趣的:(python提取图片频谱)