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

조회 수: 1 (최근 30일)
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!!

답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by