Changeset 53


Ignore:
Timestamp:
06/14/13 16:16:48 (11 years ago)
Author:
dtax
Message:

Iets meer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • birds/domilbirds.m

    r52 r53  
    22dpath = fullfile(mildatapath,'birds');
    33
    4 fname = 'PC13_20090531_050000_0.wav';
     4fname = 'PC13_20090531_050000_1.wav';
    55%fname = 'PC8_20090531_050000_99.wav';
    66[signal,fs] = wavread(fullfile(dpath,'wavs',fname));
     
    99
    1010figure(2); clf; showspec(S,f,t);
    11 
    1211figure(3); clf; showspec(imag(S), f,t);
    1312
     13% smooth and threshold the spectrogram?
     14G = fspecial('gaussian',[5 5],2); % window 5x5, sigma=2
     15I = imfilter(abs(S),G,'same');
     16t = dd_threshold(I(:),0.8);
     17mask = (I>t);
     18mask(f<2000,:) = 0;
     19
     20figure(4); clf; imagesc(mask); axis xy;
     21
     22
Note: See TracChangeset for help on using the changeset viewer.