Skip to content

Commit 555456e

Browse files
committed
Minor Fixes
1 parent 32ba0a0 commit 555456e

File tree

6 files changed

+3
-18
lines changed

6 files changed

+3
-18
lines changed

Denoising Networks/CleaningNet.mat

98.4 KB
Binary file not shown.

Functions/Network Training/create_training_images_Callback.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ function create_training_images_Callback(hObject, eventdata, handles)
176176
y1 = axes2pix(length(fr),fr./1000,RelBox(:,2));
177177
y2 = axes2pix(length(fr),fr./1000,RelBox(:,4));
178178
maxfreq = find(fr<cutoff,1,'last');
179+
%maxfreq = find(fr<40000,1,'last');
180+
179181
fr = fr(1:maxfreq);
180182
s = s(1:maxfreq,:);
181183
if Accept == 1;

Functions/SeperateLong22s_Callback.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
EntropySD = 1.4826 * median(abs(EntropyMedian - UpperEntropy));
9696

9797
CallRegions = entropy > EntropyMedian + EntropySD*3;
98-
CallRegions = entropy > EntropyMedian + 0.1;
98+
%CallRegions = entropy > EntropyMedian + 0.1;
9999
% Calls must have continuously high tonality
100100
radius = find(ti>0.1,1);
101101
CallRegions = movmean(CallRegions,radius);

Functions/SqueakDetect.m

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -229,23 +229,6 @@
229229
Calls(i).Accept=0;
230230
end
231231

232-
% For the long call network, remove calls with tonality < 0.5
233-
if contains(networkname,'long','IgnoreCase',true)
234-
EntropyThreshold = 0.3;
235-
AmplitudeThreshold = 0.15;
236-
try
237-
[I,windowsize,noverlap,nfft,rate,box] = CreateSpectrogram(Calls(i));
238-
stats = CalculateStats(I,windowsize,noverlap,nfft,rate,box,EntropyThreshold,AmplitudeThreshold,0);
239-
if (stats.SignalToNoise > .4) & stats.DeltaTime > .2
240-
Calls(i).Accept=1;
241-
else
242-
Calls(i).Accept=0;
243-
end
244-
catch
245-
disp('Could not detect long 22')
246-
Calls(i).Accept=0;
247-
end
248-
end
249232
end
250233

251234
try % Reject calls below the power threshold and combine 22s

Networks/Long Rat Call Network_V2.mat

217 KB
Binary file not shown.

Networks/Long Rat Call_Network_V1.mat

-155 KB
Binary file not shown.

0 commit comments

Comments
 (0)