Changeset 59


Ignore:
Timestamp:
06/14/13 17:40:57 (11 years ago)
Author:
vcheplygina
Message:
 
Location:
birds
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • birds/domilbirds.m

    r58 r59  
    3737axis xy; xlabel('time (s)'); ylabel('freq.');
    3838
    39 % smooth and threshold the spectrogram?
    40 G = fspecial('gaussian',[5 5],2); % window 5x5, sigma=2
     39% do the same smoothing but change the threshold
     40G = fspecial('gaussian',[5 5],2);
    4141I = imfilter(abs(s2),G,'same');
    4242t = dd_threshold(I(:),0.95);
     
    4444mask(f<2000,:) = 0;
    4545
    46 figure(6); clf; imagesc(mask); axis xy;    %Ja, dit ziet er vergelijkbaar uit, iets minder kleine blobs aanwezig geloof ik?
     46figure(6); clf; imagesc(mask); axis xy;    %Looks pretty similar, but less small blobs
    4747% measure something:
    4848x = regionprops(bwlabel(mask),abs(s2));
  • birds/specwhiten.m

    r58 r59  
    3535    %P(f) = sqrt(eps + sum(s1(f,lowestix).^2));
    3636   
    37     P(f) = sum(s1(f,lowestix)) / length(lowestix);
     37    P(f) = sum(s1(f,lowestix)) / length(lowestix);  %Version for segmentation
    3838    s2(f,:) = s1(f,:) ./P(f);
    3939end
Note: See TracChangeset for help on using the changeset viewer.