kopia lustrzana https://github.com/proto17/dji_droneid
Shrunk the peak search window from 100 to 10
No reason to look that far around for the peak of a ZC sequence correlationmain
rodzic
b442f73baf
commit
60ea5e6f3f
|
@ -145,7 +145,8 @@ function [zc_indices] = find_zc_indices_by_file(file_path, sample_rate, frequenc
|
||||||
% value. The goal here is to only end up with the best score for the starting point of each burst instead of having
|
% value. The goal here is to only end up with the best score for the starting point of each burst instead of having
|
||||||
% multiple starting points for each burst.
|
% multiple starting points for each burst.
|
||||||
true_peaks = [];
|
true_peaks = [];
|
||||||
search_window = 100;
|
search_window = 10;
|
||||||
|
|
||||||
for idx = 1:length(passing_scores)
|
for idx = 1:length(passing_scores)
|
||||||
% Calculate how far to the left and right to look for the highest peak
|
% Calculate how far to the left and right to look for the highest peak
|
||||||
left_idx = passing_scores(idx) - (search_window / 2);
|
left_idx = passing_scores(idx) - (search_window / 2);
|
||||||
|
|
Ładowanie…
Reference in New Issue