Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
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!!

Respuestas (0)

Categorías

Más información sobre Read, Write, and Modify Image en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by