Filter löschen
Filter löschen

How can I extact the period from a binary image in which I can visually see a sinusoid?

1 Ansicht (letzte 30 Tage)
After calculating the spectogram of my data [S, F, T, P] = spectrogram(sr,256,250,F,fs) and I consider I = mat2gray(abs(S)); Then,I operate a thresholding on I and I obtain I_bin. If I plot I_bin: imagesc(T,F,I_bin) colormap(gray) axis xy xlabel ('Time [s]') ylabel ('Frequency [Hz]')
My problem is: I would like to find the way to extract the time distance between 2 peaks(ACTUALLY THE FIRST AND THIRD) but I don't know how to do it from a binary matrix like I_bin
Since now I found the frequency value : [row,col] = find(I_bin); fd_max = abs(F(min(row),1)); And I would like to find the two position of the vector T such that F=fd_max
Hope you'll help me!
Many thanks!!

Antworten (0)

Kategorien

Mehr zu Read, Write, and Modify Image finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by