- Timestamp:
- 06/14/13 16:16:48 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
birds/domilbirds.m
r52 r53 2 2 dpath = fullfile(mildatapath,'birds'); 3 3 4 fname = 'PC13_20090531_050000_ 0.wav';4 fname = 'PC13_20090531_050000_1.wav'; 5 5 %fname = 'PC8_20090531_050000_99.wav'; 6 6 [signal,fs] = wavread(fullfile(dpath,'wavs',fname)); … … 9 9 10 10 figure(2); clf; showspec(S,f,t); 11 12 11 figure(3); clf; showspec(imag(S), f,t); 13 12 13 % smooth and threshold the spectrogram? 14 G = fspecial('gaussian',[5 5],2); % window 5x5, sigma=2 15 I = imfilter(abs(S),G,'same'); 16 t = dd_threshold(I(:),0.8); 17 mask = (I>t); 18 mask(f<2000,:) = 0; 19 20 figure(4); clf; imagesc(mask); axis xy; 21 22
Note: See TracChangeset
for help on using the changeset viewer.