├── 1811xx_한국음성학회_권해용.pdf ├── README.md ├── beamformit.m ├── beamformit_step_by_step_sample11_almost_same.html ├── beamformit_step_by_step_sample11_almost_same.mlx ├── beamformit_step_by_step_sample12_not_same.html ├── beamformit_step_by_step_sample12_not_same.mlx ├── beamformit_step_by_step_sample13_why_xcorr_diff.html ├── beamformit_step_by_step_sample13_why_xcorr_diff.mlx ├── csvimport.m ├── sample11.png ├── sample11 ├── M05_443C0207_PED.CH1.wav ├── M05_443C0207_PED.CH3.wav ├── M05_443C0207_PED.CH4.wav ├── M05_443C0207_PED.CH5.wav ├── M05_443C0207_PED.CH6.wav ├── enhan.wav ├── log ├── orig_enhan.wav └── wav.list ├── sample12 ├── F04_421C0207_BUS.CH1.wav ├── F04_421C0207_BUS.CH3.wav ├── F04_421C0207_BUS.CH4.wav ├── F04_421C0207_BUS.CH5.wav ├── F04_421C0207_BUS.CH6.wav ├── enhan.wav ├── log ├── orig_enhan.wav └── wav.list └── sample13 ├── .log.swp ├── M06_442C020F_BUS.CH1.wav ├── M06_442C020F_BUS.CH3.wav ├── M06_442C020F_BUS.CH4.wav ├── M06_442C020F_BUS.CH5.wav ├── M06_442C020F_BUS.CH6.wav ├── enhan.wav ├── log ├── orig_enhan.wav └── wav.list /1811xx_한국음성학회_권해용.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gogyzzz/beamformit_matlab/ab0cc4c265e069ba98b541e6cf0324258382358d/1811xx_한국음성학회_권해용.pdf -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # A MATLAB implementation of CHiME4 baseline Beamformit 2 | 3 | **Please let me know if there are any bugs.** 4 | 5 | gogyzzz@gmail.com 6 | 7 | ## References 8 | 9 | - "Acoustic beamforming for speaker diarization of meetings", Xavier Anguera, Chuck Wooters and Javier Hernando, IEEE Transactions on Audio, Speech and Language Processing, September 2007, volume 15, number 7, pp.2011-2023. 10 | - [official beamformit github](https://github.com/xanguera/BeamformIt) 11 | 12 | ## Requirements 13 | 14 | | script | requirement | 15 | |---|---| 16 | | beamformit.m | MATLAB supporting audioread (also you can use on OCTAVE by installing signal package) | 17 | | beamformit_step_by_step.mlx | MATLAB supporting mlx format | 18 | 19 | ## Implementation detail 20 | See beamformit_step_by_step\*.html (and beamformit_step_by_step.mlx) 21 | 22 | 23 | ## How to run 24 | 25 | See beamformit.m 26 | 27 | ## Result 28 | 29 | ![](sample11.png) 30 | 31 | ```sh 32 | ## original version 33 | 34 | local/chime4_calc_wers.sh exp/tri3b_tr05_multi_noisy beamformit_5mics exp/tri3b_tr05_multi_noisy/graph_tgpr_5k 35 | 36 | ------------------- 37 | best overall dt05 WER 13.66% (language model weight = 11) 38 | ------------------- 39 | dt05_simu WER: 14.34% (Average), 12.82% (BUS), 17.09% (CAFE), 11.90% (PEDESTRIAN), 15.56% (STREET) 40 | ------------------- 41 | dt05_real WER: 12.98% (Average), 15.96% (BUS), 12.67% (CAFE), 10.02% (PEDESTRIAN), 13.26% (STREET) 42 | ------------------- 43 | et05_simu WER: 21.33% (Average), 15.75% (BUS), 22.97% (CAFE), 22.54% (PEDESTRIAN), 24.06% (STREET) 44 | ------------------- 45 | et05_real WER: 21.80% (Average), 30.08% (BUS), 20.62% (CAFE), 19.90% (PEDESTRIAN), 16.62% (STREET) 46 | ------------------- 47 | 48 | ## my version 49 | 50 | local/chime4_calc_wers.sh exp/tri3b_tr05_multi_noisy bfit_1026_final exp/tri3b_tr05_multi_noisy/graph_tgpr_5k 51 | compute dt05 WER for each location 52 | 53 | ------------------- 54 | best overall dt05 WER 13.69% (language model weight = 11) 55 | ------------------- 56 | dt05_simu WER: 14.31% (Average), 12.86% (BUS), 17.11% (CAFE), 11.90% (PEDESTRIAN), 15.37% (STREET) 57 | ------------------- 58 | dt05_real WER: 13.07% (Average), 16.26% (BUS), 12.74% (CAFE), 9.84% (PEDESTRIAN), 13.45% (STREET) 59 | ------------------- 60 | et05_simu WER: 21.85% (Average), 15.93% (BUS), 23.50% (CAFE), 23.44% (PEDESTRIAN), 24.52% (STREET) 61 | ------------------- 62 | et05_real WER: 22.16% (Average), 30.72% (BUS), 20.88% (CAFE), 20.20% (PEDESTRIAN), 16.87% (STREET) 63 | ------------------- 64 | ``` 65 | -------------------------------------------------------------------------------- /beamformit.m: -------------------------------------------------------------------------------- 1 | %% usage 2 | % infilenames_cell... 3 | % = {'sample5/F01_22HC010H_BUS.CH1.wav',... 4 | % 'sample5/F01_22HC010H_BUS.CH3.wav',... 5 | % 'sample5/F01_22HC010H_BUS.CH4.wav',... 6 | % 'sample5/F01_22HC010H_BUS.CH5.wav',... 7 | % 'sample5/F01_22HC010H_BUS.CH6.wav'}; 8 | % 9 | % outfilename = 'enhanced.wav'; 10 | 11 | % beamformit(infilenames_cell, outfilename); 12 | 13 | function beamformit(infilenames_cell, outfilename) 14 | 15 | [x, sr, nmic, npair, nsample] = get_x(infilenames_cell); 16 | 17 | %% make hamming window 18 | nwin = 16000; % 1 sec 19 | win = hamming_bfit(nwin); 20 | 21 | %% calculate avg_ccorr 22 | npiece = 200; 23 | nfft = 32768; 24 | nbest = 2; 25 | nmask = 5; 26 | 27 | % not the same of original bfit_1025_endpart. I don't know how. 28 | ref_mic = calcuate_avg_ccorr(x, nsample, nmic, npiece, win, nwin, nfft, nbest, nmask); 29 | 30 | %% calculating scaling factor 31 | nsegment = 10; 32 | overall_weight = calculate_scaling_factor(x, sr, nsample, nmic, nsegment); 33 | 34 | %% compute total number of delays 35 | nwin = 8000; % 0.5 sec 36 | nshift = nwin/2; 37 | nframe = floor(( nsample - nwin ) / ( nshift )); 38 | % in original code, 39 | % int totalNumDelays = (int)((m_frames - (*m_config).windowFrames - m_biggestSkew - m_UEMGap)/((*m_config).rate*m_sampleRateInMs)); 40 | % sr_in_ms = 16000 / 1000; % 16 41 | 42 | %% recreating hamming window 43 | 44 | win = hamming_bfit(nwin); 45 | 46 | %% get pair2mic table 47 | pair2mic = get_pair2mic(nmic, npair); 48 | 49 | %% compute TDOA 50 | nbest = 4; 51 | nfft = 16384; 52 | [gcc_nbest, tdoa_nbest] = compute_tdoa(x, npair, ref_mic, pair2mic, nframe, win, nwin, nshift, nfft, nbest, nmask); 53 | % disp(gcc_nbest); 54 | 55 | %% find noise threshold 56 | threshold = get_noise_threshold(gcc_nbest, nmic, ref_mic, nframe); 57 | % disp(threshold); 58 | 59 | %% noise filtering 60 | [gcc_nbest, tdoa_nbest, noise_filter] = get_noise_filter(gcc_nbest, tdoa_nbest, npair, ref_mic, nframe, threshold); 61 | 62 | 63 | %% single channel viterbi 64 | % not the same of original bfit_1025_endpart. 65 | [emission1, transition1] = prep_ch_indiv_viterbi(gcc_nbest, tdoa_nbest, npair, nframe, nbest); 66 | 67 | bestpath1 = ones(npair, nframe); 68 | 69 | bestpath1 = decode_ch_indiv_viterbi(bestpath1, emission1, transition1, npair, nframe, nbest); 70 | 71 | best2path = decode_ch_indiv_viterbi_best2(bestpath1, gcc_nbest, transition1, npair, nframe, nbest); 72 | 73 | %% multi channel viterbi 74 | % not the same of original bfit_1025_endpart. 75 | nbest2 = 2; 76 | nstate = nbest2 ^ npair; 77 | g = get_states(nstate, nmic, npair, nbest2); 78 | 79 | [emission2, transition2] = prep_global_viterbi(best2path, gcc_nbest, tdoa_nbest, g, npair, nbest, nframe, nstate); 80 | besttdoa = decode_global_viterbi(best2path, emission2, transition2, tdoa_nbest, g, npair, nframe, nstate); 81 | 82 | %% compute local xcorr 83 | mic2refpair = get_mic2refpair(pair2mic, ref_mic, nmic, npair); 84 | localxcorr = compute_local_xcorr(besttdoa, x, nsample, nmic, npair, nframe, ref_mic, mic2refpair); 85 | 86 | %% compute sum weight 87 | alpha = 0.05; 88 | out_weight = compute_out_weight(localxcorr, nframe, nmic, noise_filter, ref_mic, mic2refpair, alpha); 89 | 90 | %% Channel sum 91 | out_x = channel_sum(x, nsample, nframe, nmic, ref_mic, mic2refpair, nwin, nshift... 92 | ,besttdoa, out_weight, overall_weight); 93 | 94 | audiowrite(outfilename,out_x,sr); 95 | 96 | end 97 | 98 | function [x, sr, nmic, npair, nsample] = get_x(infilenames_cell) 99 | nmic = size(infilenames_cell,2); 100 | %npair = nmic - 1; 101 | npair = nmic; 102 | [x_ch1,sr] = audioread(infilenames_cell{1}); 103 | nsample = size(x_ch1,1); 104 | x = zeros(nmic, nsample); 105 | 106 | x(1,:) = x_ch1'; 107 | for m = 2:nmic 108 | x(m,:) = audioread(infilenames_cell{m})'; % estimated ref_mic: 109 | end 110 | end 111 | 112 | function [max_val, idx] = maxk(list, k, nmask) 113 | 114 | candi_list = zeros(length(list(:)),1); 115 | 116 | for i = 2:(length(list(:))-1) 117 | if list(i-1) < list(i) && list(i+1) < list(i) 118 | candi_list(i) = list(i); 119 | %list(i-1) = -9999; 120 | %list(i+1) = -9999; 121 | end 122 | end 123 | 124 | max_val = zeros(k, 1); 125 | idx = zeros(k,1); 126 | for i = 1:k 127 | [max_val(i), idx(i)] = max(candi_list); 128 | st = max(idx(i)-nmask+1, 1); 129 | ed = min(length(candi_list(:)), idx(i)+nmask-1); 130 | candi_list(st:ed) = 0; 131 | end 132 | end 133 | 134 | function win = hamming_bfit(nwin) 135 | win = zeros(1,nwin); 136 | for i = 1:nwin 137 | win(i) = 0.54 - 0.46 * cos(6.283185307*(i-1)/(nwin-1)); 138 | end 139 | end 140 | 141 | function ref_mic = calcuate_avg_ccorr(x, nsample, nmic, npiece, win, nwin, nfft, nbest, nmask) 142 | scroll = floor(nsample / (npiece+2)); 143 | 144 | avg_ccorr = zeros(nmic, nmic); 145 | 146 | for i = 1:npiece 147 | st = i * scroll + 1; 148 | ed = st + nwin - 1; 149 | if st + nfft/2 >= nsample 150 | break; 151 | end 152 | 153 | for m1 = 1:(nmic-1) 154 | avg_ccorr(m1, m1) = 0; 155 | for m2 = (m1+1):nmic 156 | stft1 = fft([x(m1,st:ed) .* win, zeros(1,nfft-nwin)]); 157 | stft2 = fft([x(m2,st:ed) .* win, zeros(1,nfft-nwin)]); 158 | numerator = stft1 .* conj(stft2); 159 | ccorr = real(ifft(numerator ./ (abs(numerator)))); 160 | ccorr = [ccorr(end-479:end), ccorr(1:480)]; 161 | 162 | avg_ccorr(m1, m2) = avg_ccorr(m1, m2) + sum(maxk(ccorr, nbest, nmask)); 163 | avg_ccorr(m2, m1) = avg_ccorr(m1, m2); 164 | end 165 | end 166 | end 167 | 168 | avg_ccorr = avg_ccorr / (nbest * npiece); 169 | [dummy, ref_mic] = max(sum(avg_ccorr)); 170 | end 171 | 172 | function overall_weight = calculate_scaling_factor(x, sr, nsample, nmic, nsegment) 173 | %% 174 | % Set the total number of segments from 10 to 1 for computing scalling factor, with segment duration 60798 175 | % Processing channel 0 176 | % amount_frames_read: 0.000000 177 | % segment_duration: 0.000000 178 | % The Median maximum energy for channel 0 is 0.352051 179 | % Set the total number of segments from 10 to 1 for computing scalling factor, with segment duration 60798 180 | % Processing channel 1 181 | % amount_frames_read: 0.000000 182 | % segment_duration: 0.000000 183 | % The Median maximum energy for channel 1 is 0.341858 184 | % Set the total number of segments from 10 to 1 for computing scalling factor, with segment duration 60798 185 | % Processing channel 2 186 | % amount_frames_read: 0.000000 187 | % segment_duration: 0.000000 188 | % The Median maximum energy for channel 2 is 0.499451 189 | % Weighting calculated to adjust the signal: 0.754173 190 | 191 | 192 | max_val = zeros(nmic, 1); 193 | 194 | if nsample <= 10*sr % 10 seconds 195 | for m = 1:nmic 196 | max_val(m) = max(abs(x(m,:))); 197 | end 198 | else 199 | if nsample < 100*sr % 100 seconds 200 | nsegment = floor(size(x,2) / 160000); 201 | end 202 | scroll = floor(size(x,2) / nsegment); 203 | max_val_candidate = zeros(nmic, nsegment); 204 | 205 | for s = 0:(nsegment-1) 206 | st = s * scroll + 1; 207 | ed = st + 160000 - 1; 208 | for m = 1:nmic 209 | max_val_candidate(m,s+1) = max(abs(x(m,st:ed))); 210 | end 211 | end 212 | 213 | for m = 1:nmic 214 | 215 | sorted = sort(max_val_candidate(m,:), 'ascend'); 216 | if length(sorted(:)) > 2 217 | max_val(m) = sorted(floor(end/2) + 1); 218 | else 219 | max_val(m) = sorted; 220 | end 221 | end 222 | end 223 | 224 | overall_weight = (0.3 * nmic) / sum(max_val); 225 | 226 | % disp(max_val); 227 | % disp(overall_weight); 228 | % disp((0.3 * 3) / (0.352051 + 0.341858 + 0.499451)); 229 | end 230 | 231 | function pair2mic = get_pair2mic(nmic, npair) 232 | 233 | pair2mic = zeros(nmic, npair); 234 | 235 | for m = 1:nmic 236 | p = 1; % pair idx 237 | for i = 1:nmic 238 | % if i == m 239 | % continue; 240 | % end 241 | pair2mic(m,p) = i; 242 | p = p + 1; 243 | end 244 | end 245 | end 246 | 247 | function mic2refpair = get_mic2refpair(pair2mic, ref_mic, nmic, npair) 248 | mic2refpair = zeros(nmic,1); 249 | mic2refpair(ref_mic) = 0; 250 | 251 | for p = 1:npair 252 | m = pair2mic(ref_mic,p); 253 | mic2refpair(m) = p; 254 | end 255 | end 256 | 257 | function [gcc_nbest, tdoa_nbest] = compute_tdoa(x, npair, ref_mic, pair2mic, nframe, win, nwin, nshift, nfft, nbest, nmask) 258 | gcc_nbest = zeros(npair, nframe, nbest); 259 | tdoa_nbest = zeros(npair, nframe, nbest); 260 | 261 | for t = 1:(nframe) 262 | st = (t-1) * nshift + 1; 263 | ed = st + nwin - 1; 264 | % disp(st); 265 | % disp(ed); 266 | for p = 1:npair 267 | 268 | m = pair2mic(ref_mic,p); 269 | 270 | stft_ref = fft([x(ref_mic,st:ed) .* win, zeros(1,nfft-nwin)]); 271 | stft_m = fft([x(m,st:ed) .* win, zeros(1,nfft-nwin)]); 272 | numerator = stft_m .* conj(stft_ref); 273 | gcc = real(ifft(numerator ./ (eps+abs(numerator)))); 274 | gcc = [gcc(end-479:end), gcc(1:480)]; 275 | [gcc_nbest(p,t,:), tdoa_nbest(p,t,:)] = maxk(gcc, nbest, nmask); 276 | tdoa_nbest(p,t,:) = tdoa_nbest(p,t,:) - (481); % index shifting 277 | 278 | end 279 | 280 | end 281 | end 282 | 283 | function threshold = get_noise_threshold(gcc_nbest, nmic, ref_mic, nframe) 284 | % Threshold is 0.140125 (min: 0.132648 max 0.563892) 285 | % Thresholding noisy frames lower than 0.140125 286 | th_idx = floor((0.1 * nframe)) + 1; 287 | 288 | sorted = sort(sum(gcc_nbest(:,:,1),1) - sum(gcc_nbest(ref_mic,:,1),1), 'ascend'); 289 | 290 | threshold = sorted(th_idx)/(nmic-1); 291 | %disp(sorted); 292 | % disp(th_idx); 293 | % disp(threshold); 294 | end 295 | 296 | function [gcc_nbest, tdoa_nbest, noise_filter] = get_noise_filter(gcc_nbest, tdoa_nbest, npair, ref_mic, nframe, threshold) 297 | 298 | noise_filter = zeros(npair, nframe); 299 | 300 | for p = 1:npair 301 | for t = 1:nframe 302 | if gcc_nbest(p,t,1) < threshold 303 | noise_filter(p,t) = 1; 304 | 305 | if t == 1 % it's silence 306 | gcc_nbest(p,t,:) = 0; % masking with discouraging values 307 | gcc_nbest(p,t,1) = 1; % only one path 308 | tdoa_nbest(p,t,:) = 480; % masking with discouraging values 309 | tdoa_nbest(p,t,1) = 0; 310 | else 311 | tdoa_nbest(p,t,:) = tdoa_nbest(p,t-1,:); 312 | end 313 | end 314 | if p == ref_mic 315 | gcc_nbest(p,t,:) = 0; 316 | gcc_nbest(p,t,1) = 1; 317 | tdoa_nbest(p,t,:) = 0; 318 | end 319 | end 320 | end 321 | end 322 | 323 | function [emission1, transition1] = prep_ch_indiv_viterbi(gcc_nbest, tdoa_nbest, npair, nframe, nbest) 324 | 325 | emission1 = zeros(npair, nframe, nbest); 326 | diff1 = zeros(npair, nframe, nbest, nbest); % do not using 1st idx 327 | transition1 = zeros(npair, nframe, nbest, nbest); % do not using 1st idx 328 | 329 | for p = 1:npair 330 | for t = 1:nframe 331 | for n = 1:nbest 332 | if gcc_nbest(p,t,n) > 0 333 | emission1(p,t,n) = log10(gcc_nbest(p,t,n) / sum(gcc_nbest(p,t,:))); 334 | else 335 | emission1(p,t,n) = -1000; 336 | end 337 | end 338 | end 339 | end 340 | 341 | for p = 1:npair 342 | for t = 2:nframe 343 | for n = 1:nbest 344 | for nprev = 1:nbest 345 | diff1(p,t,n,nprev) = abs(tdoa_nbest(p,t,n) - tdoa_nbest(p,t-1,nprev)); 346 | end 347 | end 348 | end 349 | end 350 | 351 | for p = 1:npair 352 | for t = 2:nframe 353 | for n = 1:nbest 354 | for nprev = 1:nbest 355 | % there is a computational bug. 356 | % disp((2+maxdiff1(p,t,n))); 357 | % disp(diff1(p,t,n,nprev)); 358 | % disp(maxdiff1(p,t,n)); 359 | % disp(log10(481/482)); 360 | % disp(1 + maxdiff1(p,t,n) - diff1(p,t,n,nprev)); 361 | % disp((2+maxdiff1(p,t,n))); 362 | maxdiff1 = max(diff1(p,t,:)); 363 | nume = 1 + maxdiff1 - diff1(p,t,n,nprev); 364 | deno = (2+maxdiff1); 365 | transition1(p,t,n,nprev) = log10(nume / deno); 366 | end 367 | end 368 | end 369 | end 370 | end 371 | 372 | function bestpath1 = decode_ch_indiv_viterbi(bestpath1, emission1, transition1, npair, nframe, nbest) 373 | 374 | dC = ones(npair, nframe, nbest) * -1000; 375 | tC = ones(npair, nframe, nbest); 376 | R = ones(npair, nframe); 377 | F = ones(npair, nframe); 378 | 379 | forwardTrans = zeros(npair, nframe, nbest); 380 | selfLoopTrans = zeros(npair, nframe, nbest); 381 | 382 | for p = 1:npair 383 | for n = 1:nbest 384 | dC(p,1,n) = emission1(p,1,n); 385 | end 386 | end 387 | 388 | for p = 1:npair 389 | for t = 2:nframe 390 | for n = 1:nbest 391 | best_n_prev = R(p,t-1); 392 | 393 | forwardTrans(p,t,n) = dC(p,t-1,best_n_prev) + 25 * transition1(p,t,n,best_n_prev); 394 | selfLoopTrans(p,t,n) = dC(p,t-1,n) + 25 * transition1(p,t,n,n); 395 | 396 | if selfLoopTrans(p,t,n) >= forwardTrans(p,t,n) 397 | dC(p,t,n) = selfLoopTrans(p,t,n) + emission1(p,t,n); 398 | tC(p,t,n) = tC(p,t-1,n); 399 | else 400 | dC(p,t,n) = forwardTrans(p,t,n) + emission1(p,t,n); 401 | tC(p,t,n) = t; 402 | end 403 | end 404 | 405 | [dummy, R(p,t)] = max(dC(p,t,:)); 406 | F(p,t) = tC(p,t,R(p,t)); 407 | 408 | end 409 | 410 | st = F(p,end); 411 | bestpath1(p,st:end) = R(p,end); 412 | 413 | while st > 2 414 | ed = st - 1; 415 | st = F(p,ed); 416 | bestpath1(p,st:ed) = R(p,ed); 417 | end 418 | end 419 | 420 | end 421 | 422 | function best2path = decode_ch_indiv_viterbi_best2(bestpath1, gcc_nbest, transition1, npair, nframe, nbest) 423 | 424 | best2path = zeros(npair, nframe, 2); 425 | emission1 = zeros(npair, nframe, nbest); 426 | 427 | for p = 1:npair 428 | for t = 1:nframe 429 | best1 = bestpath1(p,t); 430 | gcc_nbest(p,t,best1) = 0; 431 | end 432 | end 433 | 434 | for p = 1:npair 435 | for t = 1:nframe 436 | for n = 1:nbest 437 | if gcc_nbest(p,t,n) > 0 438 | emission1(p,t,n) = log10(gcc_nbest(p,t,n) / sum(gcc_nbest(p,t,:))); 439 | else 440 | emission1(p,t,n) = -1000; 441 | end 442 | end 443 | end 444 | end 445 | 446 | bestpath2 = decode_ch_indiv_viterbi(bestpath1, emission1, transition1, npair, nframe, nbest); 447 | 448 | for p = 1:npair 449 | for t = 1:nframe 450 | best2path(p,t,1) = bestpath1(p,t); 451 | best2path(p,t,2) = bestpath2(p,t); 452 | end 453 | end 454 | 455 | end 456 | 457 | function [table, l] = fill_all_comb(ipair, npair, ibest, nbest, tmp_row, table, l) 458 | tmp_row(ipair) = ibest; 459 | %fprintf('ipair: %d ibest: %d l: %d\n', ipair, ibest, l); 460 | 461 | if ipair == npair 462 | for j = 1:npair 463 | table(l, j) = tmp_row(j); 464 | end 465 | l = l + 1; 466 | else 467 | for ibest = 1:nbest 468 | [table, l] = fill_all_comb(ipair + 1, npair, ibest, nbest, tmp_row, table, l); 469 | end 470 | end 471 | end 472 | 473 | function g = get_states(nstate, nmic, npair, nbest2) 474 | g = zeros(nstate, npair); 475 | tmp_row = zeros(nmic,1); 476 | l = 1; 477 | for ibest = 1:nbest2 478 | [g, l] = fill_all_comb(1, npair, ibest, nbest2, tmp_row, g, l); 479 | end 480 | end 481 | 482 | function [emission2, transition2] = prep_global_viterbi(best2path, gcc_nbest, tdoa_nbest, g, npair, nbest, nframe, nstate) 483 | 484 | diff2 = zeros(npair, nframe, nbest, nbest); 485 | emission2 = zeros(nframe, nstate); 486 | transition2 = zeros(nframe, nstate, nstate); % do not using 1st idx 487 | 488 | for t = 1:nframe 489 | for l = 1:nstate 490 | for m = 1:npair 491 | ibest = best2path(m, t, g(l,m)); 492 | 493 | if gcc_nbest(m,t,ibest) > 0 494 | emission2(t, l) = emission2(t, l) + log10(gcc_nbest(m,t,ibest)); 495 | else 496 | emission2(t, l) = emission2(t, l) + -1000; 497 | end 498 | end 499 | end 500 | end 501 | 502 | for t = 2:nframe 503 | maxdiff2 = 0; 504 | for ibest = 1:nbest 505 | for jbest = 1:nbest 506 | for m = 1:npair-1 % why? 507 | diff2(m,t,ibest, jbest) = abs(tdoa_nbest(m,t,ibest)-tdoa_nbest(m,t-1,jbest)); 508 | if maxdiff2 < diff2(m,t,ibest, jbest) 509 | maxdiff2 = diff2(m,t,ibest, jbest); 510 | end 511 | end 512 | end 513 | end 514 | 515 | diff2(:,t,:,:) = log10( (1 + maxdiff2 - diff2(:,t,:,:)) / (2 + maxdiff2) ); 516 | for l = 1:nstate 517 | for lprev = 1:nstate 518 | for m = 1:npair-1 519 | ibest = best2path(m, t, g(l,m)); 520 | jbest = best2path(m, t-1, g(lprev,m)); 521 | 522 | transition2(t,l,lprev)... 523 | = transition2(t,l,lprev)... 524 | + diff2(m,t,ibest,jbest); 525 | end 526 | end 527 | end 528 | end 529 | end 530 | 531 | function besttdoa = decode_global_viterbi(best2path, emission2, transition2, tdoa_nbest, g, npair, nframe, nstate) 532 | 533 | besttdoa = zeros(npair, nframe); 534 | 535 | dC = ones(nframe, nstate) * -1000; 536 | tC = ones(nframe, nstate); 537 | 538 | R = ones(nframe, 1); % best prev state 539 | F = ones(nframe, 1); 540 | 541 | forwardTrans = zeros(nframe, nstate); 542 | selfLoopTrans = zeros(nframe, nstate); 543 | 544 | 545 | for l = 1:nstate 546 | dC(1,l) = emission2(1,l); 547 | end 548 | 549 | for t = 2:nframe 550 | for l = 1:nstate 551 | best_l_prev = R(t-1); 552 | 553 | forwardTrans(t,l) = dC(t-1,best_l_prev) + 25 * transition2(t,l,best_l_prev); 554 | selfLoopTrans(t,l) = dC(t-1,l) + 25 * transition2(t,l,l); 555 | 556 | if selfLoopTrans(t,l) >= forwardTrans(t,l) 557 | dC(t,l) = selfLoopTrans(t,l) + emission2(t,l); 558 | tC(t,l) = tC(t-1,l); 559 | else 560 | dC(t,l) = forwardTrans(t,l) + emission2(t,l); 561 | tC(t,l) = t; 562 | end 563 | end 564 | 565 | [dummy, R(t)] = max(dC(t,:)); 566 | F(t) = tC(t,R(t)); 567 | end 568 | 569 | bestpath2 = ones(nframe,1); % state idx stored. 570 | 571 | st = F(end); 572 | bestpath2(st:end) = R(end); 573 | 574 | while st > 2 575 | ed = st - 1; 576 | st = F(ed); 577 | bestpath2(st:ed) = R(ed); 578 | end 579 | 580 | besttdoa = zeros(npair, nframe); 581 | 582 | for t = 1:nframe 583 | if bestpath2(t) == 0 584 | fprintf('t: %d\n', bestpath2(t)); 585 | disp(F); 586 | disp(R); 587 | end 588 | for p = 1:npair 589 | l = bestpath2(t); 590 | ibest = best2path(p, t, g(l,p)); 591 | besttdoa(p,t) = tdoa_nbest(p,t,ibest); 592 | end 593 | end 594 | end 595 | 596 | function localxcorr = compute_local_xcorr(besttdoa, x, nsample, nmic, npair, nframe, ref_mic, mic2refpair) 597 | tmp_localxcorr = zeros(nmic, nmic, nframe); 598 | 599 | for t = 1:nframe 600 | ref_st = (t-1) * 4000 + 1; 601 | ref_ed = min(ref_st + 8000 - 1, nsample); 602 | 603 | for m1 = 1:(nmic-1) 604 | for m2 = (m1+1):nmic 605 | 606 | if m1 == ref_mic 607 | st1 = ref_st; 608 | ed1 = ref_ed; 609 | else 610 | p = mic2refpair(m1); 611 | st1 = max(1,ref_st + besttdoa(p,t)); 612 | ed1 = min(nsample, ref_ed + besttdoa(p,t)); 613 | end 614 | 615 | if m2 == ref_mic 616 | st2 = ref_st; 617 | ed2 = ref_ed; 618 | else 619 | p = mic2refpair(m2); 620 | st2 = max(1,ref_st + besttdoa(p,t)); 621 | ed2 = min(nsample, ref_ed + besttdoa(p,t)); 622 | end 623 | 624 | buf1 = x(m1,st1:ed1); 625 | buf2 = x(m2,st2:ed2); 626 | 627 | ener1 = sum(buf1(:).^2); 628 | ener2 = sum(buf2(:).^2); 629 | 630 | min_ed = min(ed1-st1, ed2-st2) + 1; 631 | tmp_localxcorr(m1,m2,t)... 632 | = sum(... 633 | buf1(1:min_ed) .* buf2(1:min_ed)... 634 | / (ener1 * ener2)); 635 | 636 | if tmp_localxcorr(m1,m2,t) < 0 637 | tmp_localxcorr(m1,m2,t) = 0; 638 | end 639 | 640 | tmp_localxcorr(m2,m1,t) = tmp_localxcorr(m1,m2,t); 641 | end 642 | end 643 | end 644 | 645 | localxcorr = squeeze(sum(tmp_localxcorr,1)); 646 | end 647 | 648 | function out_weight = compute_out_weight(localxcorr, nframe, nmic, noise_filter, ref_mic, mic2refpair, alpha) 649 | 650 | out_weight = ones(nmic, nframe) * ( 1 / nmic); 651 | 652 | for t = 1:nframe 653 | 654 | if sum(localxcorr(:,t)) == 0 655 | localxcorr(:,t) = 1 / nmic; 656 | end 657 | 658 | localxcorr(:,t) = localxcorr(:,t) / sum(localxcorr(:,t)); 659 | localxcorr_sum_nonref = 0; 660 | 661 | for m = 1:nmic 662 | if m == ref_mic 663 | out_weight(m,t) = ... 664 | (1-alpha) * out_weight(m,max(1,t-1)) ... 665 | + alpha * localxcorr(m,t); 666 | 667 | else 668 | p = mic2refpair(m); 669 | if noise_filter(p,t) == 0 670 | out_weight(m,t) = ... 671 | (1-alpha) * out_weight(m,max(1,t-1)) ... 672 | + alpha * localxcorr(m,t); 673 | end 674 | 675 | localxcorr_sum_nonref = localxcorr_sum_nonref + localxcorr(m,t); 676 | end 677 | end 678 | 679 | if sum(localxcorr(:,t)) == 0 680 | out_weight(:,t) = 1; 681 | end 682 | 683 | for m = 1:nmic 684 | if m ~= ref_mic 685 | if (localxcorr(m,t) / localxcorr_sum_nonref) < (1 / (10 * (nmic-1))) 686 | out_weight(m,t) = 0; 687 | end 688 | end 689 | end 690 | 691 | out_weight(:,t) = out_weight(:,t) / sum(out_weight(:,t)); 692 | 693 | end 694 | end 695 | 696 | function out_x = channel_sum(x, nsample, nframe, nmic, ref_mic, mic2refpair, nwin, nshift... 697 | ,besttdoa, out_weight, overall_weight) 698 | 699 | out_x = zeros(1,nsample); 700 | 701 | % figure; 702 | for t = 1:nframe 703 | ref_st = (t-1) * nshift + 1; 704 | ref_ed = min(ref_st + nwin - 1, nsample); 705 | 706 | for m = 1:nmic 707 | if m == ref_mic 708 | st = ref_st; 709 | ed = ref_ed; 710 | else 711 | p = mic2refpair(m); 712 | st = max(1,ref_st + besttdoa(p,t)); 713 | ed = min(nsample, ref_ed + besttdoa(p,t)); 714 | end 715 | 716 | triwin = triang(nwin)'; 717 | % if t == 1 718 | % triwin(1:nwin) = 1; 719 | % end 720 | 721 | diff = 0; 722 | 723 | if (ref_ed - ref_st) ~= (ed - st) % if buf is small (always) 724 | diff = ref_ed - ed; 725 | end 726 | out_x(ref_st+diff:ref_ed)... 727 | = out_x(ref_st+diff:ref_ed)... 728 | + (squeeze(x(m,st:ed))... 729 | * out_weight(m,t)... 730 | .* triwin(1:min(nwin,ed-st+1))... 731 | * overall_weight); 732 | end 733 | end 734 | 735 | while ref_st + 4000 < nsample 736 | ref_st = ref_st + 4000; 737 | ref_ed = min(ref_st + nwin - 1, nsample); 738 | 739 | for m = 1:nmic 740 | %fprintf('ref_ed: %d\n', ref_ed); 741 | 742 | if m == ref_mic 743 | st = ref_st; 744 | ed = ref_ed; 745 | else 746 | p = mic2refpair(m); 747 | st = max(1,ref_st + besttdoa(p,t)); 748 | ed = min(nsample, ref_ed + besttdoa(p,t)); 749 | end 750 | 751 | if st > ed 752 | continue; 753 | end 754 | buf = squeeze(x(m,st:ed)); 755 | diff = (ref_ed - ref_st) - (ed-st); 756 | if diff > 0 757 | buf = [buf, zeros(1,diff)]; 758 | else 759 | buf = buf(1:end-diff); 760 | end 761 | 762 | triwin = triang(nwin)'; 763 | 764 | %fprintf('ref_ed: %d, ref_st: %d\n', ref_ed, ref_st); 765 | %fprintf('ref_ed - ref_st: %d\n', ref_ed - ref_st); 766 | %fprintf('size of buf: %d\n', size(buf,1)); 767 | out_x(ref_st:ref_ed)... 768 | = out_x(ref_st:ref_ed)... 769 | + (buf... 770 | * out_weight(m,t)... 771 | .* triwin(1:min(nwin,size(buf, 2)))... 772 | * overall_weight); 773 | 774 | % this part helps increasing recognition accuracy. 775 | % not in original bfit_1025_endpart. 776 | % if ref_ed < nsample 777 | % out_x(ref_ed+1:end) = out_x(ref_ed+1:end) + (x(ref_mic,ref_ed+1:end) * out_weight(m,t) * overall_weight); 778 | % end 779 | end 780 | end 781 | end 782 | -------------------------------------------------------------------------------- /beamformit_step_by_step_sample11_almost_same.mlx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gogyzzz/beamformit_matlab/ab0cc4c265e069ba98b541e6cf0324258382358d/beamformit_step_by_step_sample11_almost_same.mlx -------------------------------------------------------------------------------- /beamformit_step_by_step_sample12_not_same.mlx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gogyzzz/beamformit_matlab/ab0cc4c265e069ba98b541e6cf0324258382358d/beamformit_step_by_step_sample12_not_same.mlx -------------------------------------------------------------------------------- /beamformit_step_by_step_sample13_why_xcorr_diff.mlx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gogyzzz/beamformit_matlab/ab0cc4c265e069ba98b541e6cf0324258382358d/beamformit_step_by_step_sample13_why_xcorr_diff.mlx -------------------------------------------------------------------------------- /csvimport.m: -------------------------------------------------------------------------------- 1 | function varargout = csvimport( fileName, varargin ) 2 | % CSVIMPORT reads the specified CSV file and stores the contents in a cell array or matrix 3 | % 4 | % The file can contain any combination of text & numeric values. Output data format will vary 5 | % depending on the exact composition of the file data. 6 | % 7 | % CSVIMPORT( fileName ): fileName - String specifying the CSV file to be read. Set to 8 | % [] to interactively select the file. 9 | % 10 | % CSVIMPORT( fileName, ... ) : Specify a list of options to be applied when importing the CSV file. 11 | % The possible options are: 12 | % delimiter - String to be used as column delimiter. Default 13 | % value is , (comma) 14 | % columns - String or cell array of strings listing the columns 15 | % from which data is to be extracted. If omitted data 16 | % from all columns in the file is imported. If file 17 | % does not contain a header row, the columns 18 | % parameter can be a numeric array listing column 19 | % indices from which data is to be extracted. 20 | % outputAsChar - true / false value indicating whether the data 21 | % should be output as characters. If set to false the 22 | % function attempts to convert each column into a 23 | % numeric array, it outputs the column as characters 24 | % if conversion of any data element in the column 25 | % fails. Default value is false. 26 | % uniformOutput - true / false value indicating whether output can be 27 | % returned without encapsulation in a cell array. 28 | % This parameter is ignored if the columns / table 29 | % cannot be converted into a matrix. 30 | % noHeader - true / false value indicating whether the CSV 31 | % file's first line contains column headings. Default 32 | % value is false. 33 | % ignoreWSpace - true / false value indicating whether to ignore 34 | % leading and trailing whitespace in the column 35 | % headers; ignored if noHeader is set to true. 36 | % Default value is false. 37 | % 38 | % The parameters must be specified in the form of param-value pairs, parameter names are not 39 | % case-sensitive and partial matching is supported. 40 | % 41 | % [C1 C2 C3] = CSVIMPORT( fileName, 'columns', {'C1', 'C2', C3'}, ... ) 42 | % This form returns the data from columns in output variables C1, C2 and C3 respectively, the 43 | % column names are case-sensitive and must match a column name in the file exactly. When fetching 44 | % data in column mode the number of output columns must match the number of columns to read or it 45 | % must be one. In the latter case the data from the columns is returned as a single cell matrix. 46 | % 47 | % [C1 C2 C3] = CSVIMPORT( fileName, 'columns', [1, 3, 4], ,'noHeader', true, ... ) 48 | % This form returns the data from columns in output variables C1, C2 and C3 respectively, the 49 | % columns parameter must contain the column indices when the 'noHeader' option is set to true. 50 | 51 | % 52 | % Notes: 1. Function has not been tested on badly formatted CSV files. 53 | % 2. Created using R2007b but has been tested on R2006b. 54 | % 55 | % Revisions: 56 | % 04/28/2009: Corrected typo in an error message 57 | % Added igonoreWSpace option 58 | % 08/16/2010: Replaced calls to str2num with str2double, the former uses eval leading to unwanted 59 | % side effects if cells contain text with function names 60 | % 61 | 62 | if ( nargin == 0 ) || isempty( fileName ) 63 | [fileName filePath] = uigetfile( '*.csv', 'Select CSV file' ); 64 | if isequal( fileName, 0 ) 65 | return; 66 | end 67 | fileName = fullfile( filePath, fileName ); 68 | else 69 | if ~ischar( fileName ) 70 | error( 'csvimport:FileNameError', 'The first argument to %s must be a valid .csv file', ... 71 | mfilename ); 72 | end 73 | end 74 | 75 | %Setup default values 76 | p.delimiter = ','; 77 | p.columns = []; 78 | p.outputAsChar = false; 79 | p.uniformOutput = true; 80 | p.noHeader = false; 81 | p.ignoreWSpace = false; 82 | 83 | validParams = { ... 84 | 'delimiter', ... 85 | 'columns', ... 86 | 'outputAsChar', ... 87 | 'uniformOutput', ... 88 | 'noHeader', ... 89 | 'ignoreWSpace' ... 90 | }; 91 | 92 | %Parse input arguments 93 | if nargin > 1 94 | if mod( numel( varargin ), 2 ) ~= 0 95 | error( 'csvimport:InvalidInput', ['All input parameters after the fileName must be in the ' ... 96 | 'form of param-value pairs'] ); 97 | end 98 | params = lower( varargin(1:2:end) ); 99 | values = varargin(2:2:end); 100 | 101 | if ~all( cellfun( @ischar, params ) ) 102 | error( 'csvimport:InvalidInput', ['All input parameters after the fileName must be in the ' ... 103 | 'form of param-value pairs'] ); 104 | end 105 | 106 | lcValidParams = lower( validParams ); 107 | for ii = 1 : numel( params ) 108 | result = strmatch( params{ii}, lcValidParams ); 109 | %If unknown param is entered ignore it 110 | if isempty( result ) 111 | continue 112 | end 113 | %If we have multiple matches make sure we don't have a single unambiguous match before throwing 114 | %an error 115 | if numel( result ) > 1 116 | exresult = strmatch( params{ii}, validParams, 'exact' ); 117 | if ~isempty( exresult ) 118 | result = exresult; 119 | else 120 | %We have multiple possible matches, prompt user to provide an unambiguous match 121 | error( 'csvimport:InvalidInput', 'Cannot find unambiguous match for parameter ''%s''', ... 122 | varargin{ii*2-1} ); 123 | end 124 | end 125 | result = validParams{result}; 126 | p.(result) = values{ii}; 127 | end 128 | end 129 | 130 | %Check value attributes 131 | if isempty( p.delimiter ) || ~ischar( p.delimiter ) 132 | error( 'csvimport:InvalidParamType', ['The ''delimiter'' parameter must be a non-empty ' ... 133 | 'character array'] ); 134 | end 135 | if isempty( p.noHeader ) || ~islogical( p.noHeader ) || ~isscalar( p.noHeader ) 136 | error( 'csvimport:InvalidParamType', ['The ''noHeader'' parameter must be a non-empty ' ... 137 | 'logical scalar'] ); 138 | end 139 | if ~p.noHeader 140 | if ~isempty( p.columns ) 141 | if ~ischar( p.columns ) && ~iscellstr( p.columns ) 142 | error( 'csvimport:InvalidParamType', ['The ''columns'' parameter must be a character array ' ... 143 | 'or a cell array of strings for CSV files containing column headers on the first line'] ); 144 | end 145 | if p.ignoreWSpace 146 | p.columns = strtrim( p.columns ); 147 | end 148 | end 149 | else 150 | if ~isempty( p.columns ) && ~isnumeric( p.columns ) 151 | error( 'csvimport:InvalidParamType', ['The ''columns'' parameter must be a numeric array ' ... 152 | 'for CSV files containing column headers on the first line'] ); 153 | end 154 | end 155 | if isempty( p.outputAsChar ) || ~islogical( p.outputAsChar ) || ~isscalar( p.outputAsChar ) 156 | error( 'csvimport:InvalidParamType', ['The ''outputAsChar'' parameter must be a non-empty ' ... 157 | 'logical scalar'] ); 158 | end 159 | if isempty( p.uniformOutput ) || ~islogical( p.uniformOutput ) || ~isscalar( p.uniformOutput ) 160 | error( 'csvimport:InvalidParamType', ['The ''uniformOutput'' parameter must be a non-empty ' ... 161 | 'logical scalar'] ); 162 | end 163 | 164 | %Open file 165 | [fid msg] = fopen( fileName, 'rt' ); 166 | if fid == -1 167 | error( 'csvimport:FileReadError', 'Failed to open ''%s'' for reading.\nError Message: %s', ... 168 | fileName, msg ); 169 | end 170 | 171 | colMode = ~isempty( p.columns ); 172 | if ischar( p.columns ) 173 | p.columns = cellstr( p.columns ); 174 | end 175 | nHeaders = numel( p.columns ); 176 | 177 | if colMode 178 | if ( nargout > 1 ) && ( nargout ~= nHeaders ) 179 | error( 'csvimport:NumOutputs', ['The number of output arguments must be 1 or equal to the ' ... 180 | 'number of column names when fetching data for specific columns'] ); 181 | end 182 | end 183 | 184 | %Read first line and determine number of columns in data 185 | rowData = fgetl( fid ); 186 | rowData = regexp( rowData, p.delimiter, 'split' ); 187 | nCols = numel( rowData ); 188 | 189 | %Check whether all specified columns are present if used in column mode and store their indices 190 | if colMode 191 | if ~p.noHeader 192 | if p.ignoreWSpace 193 | rowData = strtrim( rowData ); 194 | end 195 | colIdx = zeros( 1, nHeaders ); 196 | for ii = 1 : nHeaders 197 | result = strmatch( p.columns{ii}, rowData ); 198 | if isempty( result ) 199 | fclose( fid ); 200 | error( 'csvimport:UnknownHeader', ['Cannot locate column header ''%s'' in the file ' ... 201 | '''%s''. Column header names are case sensitive.'], p.columns{ii}, fileName ); 202 | elseif numel( result ) > 1 203 | exresult = strmatch( p.columns{ii}, rowData, 'exact' ); 204 | if numel( exresult ) == 1 205 | result = exresult; 206 | else 207 | warning( 'csvimport:MultipleHeaderMatches', ['Column header name ''%s'' matched ' ... 208 | 'multiple columns in the file, only the first match (C:%d) will be used.'], ... 209 | p.columns{ii}, result(1) ); 210 | end 211 | end 212 | colIdx(ii) = result(1); 213 | end 214 | else 215 | colIdx = p.columns(:); 216 | if max( colIdx ) > nCols 217 | fclose( fid ); 218 | error( 'csvimport:BadIndex', ['The specified column index ''%d'' exceeds the number of ' ... 219 | 'columns (%d) in the file'], max( colIdx ), nCols ); 220 | end 221 | end 222 | end 223 | 224 | %Calculate number of lines 225 | pos = ftell( fid ); 226 | if pos == -1 227 | msg = ferror( fid ); 228 | fclose( fid ); 229 | error( 'csvimport:FileQueryError', 'FTELL on file ''%s'' failed.\nError Message: %s', ... 230 | fileName, msg ); 231 | end 232 | data = fread( fid ); 233 | nLines = numel( find( data == sprintf( '\n' ) ) ) + 1; 234 | %Reposition file position indicator to beginning of second line 235 | if fseek( fid, pos, 'bof' ) ~= 0 236 | msg = ferror( fid ); 237 | fclose( fid ); 238 | error( 'csvimport:FileSeekError', 'FSEEK on file ''%s'' failed.\nError Message: %s', ... 239 | fileName, msg ); 240 | end 241 | 242 | data = cell( nLines, nCols ); 243 | data(1,:) = rowData; 244 | emptyRowsIdx = []; 245 | %Get data for remaining rows 246 | for ii = 2 : nLines 247 | rowData = fgetl( fid ); 248 | if isempty( rowData ) 249 | emptyRowsIdx = [emptyRowsIdx(:); ii]; 250 | continue 251 | end 252 | rowData = regexp( rowData, p.delimiter, 'split' ); 253 | nDataElems = numel( rowData ); 254 | if nDataElems < nCols 255 | warning( 'csvimport:UnevenColumns', ['Number of data elements on line %d (%d) differs from ' ... 256 | 'that on the first line (%d). Data in this line will be padded.'], ii, nDataElems, nCols ); 257 | rowData(nDataElems+1:nCols) = {''}; 258 | elseif nDataElems > nCols 259 | warning( 'csvimport:UnevenColumns', ['Number of data elements on line %d (%d) differs from ' ... 260 | 'that one the first line (%d). Data in this line will be truncated.'], ii, nDataElems, nCols ); 261 | rowData = rowData(1:nCols); 262 | end 263 | data(ii,:) = rowData; 264 | end 265 | %Close file handle 266 | fclose( fid ); 267 | data(emptyRowsIdx,:) = []; 268 | 269 | %Process data for final output 270 | uniformOutputPossible = ~p.outputAsChar; 271 | if p.noHeader 272 | startRowIdx = 1; 273 | else 274 | startRowIdx = 2; 275 | end 276 | if ~colMode 277 | if ~p.outputAsChar 278 | %If we're not outputting the data as characters then try to convert each column to a number 279 | for ii = 1 : nCols 280 | colData = cellfun( @str2double, data(startRowIdx:end,ii), 'UniformOutput', false ); 281 | %If any row contains an entry that cannot be converted to a number then return the whole 282 | %column as a char array 283 | if ~any( cellfun( @isnan, colData ) ) 284 | if ~p.noHeader 285 | data(:,ii)= cat( 1, data(1,ii), colData{:} ); 286 | else 287 | data(:,ii)= colData; 288 | end 289 | end 290 | end 291 | end 292 | varargout{1} = data; 293 | else 294 | %In column mode get rid of the headers (if present) 295 | data = data(startRowIdx:end,colIdx); 296 | if ~p.outputAsChar 297 | %If we're not outputting the data as characters then try to convert each column to a number 298 | for ii = 1 : nHeaders 299 | colData = cellfun( @str2double, data(:,ii), 'UniformOutput', false ); 300 | %If any row contains an entry that cannot be converted to a number then return the whole 301 | %column as a char array 302 | if ~any( cellfun( @isnan, colData ) ) 303 | data(:,ii)= colData; 304 | else 305 | %If any column cannot be converted to a number then we cannot convert the output to an array 306 | %or matrix i.e. uniform output is not possible 307 | uniformOutputPossible = false; 308 | end 309 | end 310 | end 311 | if nargout == nHeaders 312 | %Loop through each column and convert to matrix if possible 313 | for ii = 1 : nHeaders 314 | if p.uniformOutput && ~any( cellfun( @ischar, data(:,ii) ) ) 315 | varargout{ii} = cell2mat( data(:,ii) ); 316 | else 317 | varargout{ii} = data(:,ii); 318 | end 319 | end 320 | else 321 | %Convert entire table to matrix if possible 322 | if p.uniformOutput && uniformOutputPossible 323 | data = cell2mat( data ); 324 | end 325 | varargout{1} = data; 326 | end 327 | end 328 | -------------------------------------------------------------------------------- /sample11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gogyzzz/beamformit_matlab/ab0cc4c265e069ba98b541e6cf0324258382358d/sample11.png -------------------------------------------------------------------------------- /sample11/M05_443C0207_PED.CH1.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gogyzzz/beamformit_matlab/ab0cc4c265e069ba98b541e6cf0324258382358d/sample11/M05_443C0207_PED.CH1.wav -------------------------------------------------------------------------------- /sample11/M05_443C0207_PED.CH3.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gogyzzz/beamformit_matlab/ab0cc4c265e069ba98b541e6cf0324258382358d/sample11/M05_443C0207_PED.CH3.wav -------------------------------------------------------------------------------- /sample11/M05_443C0207_PED.CH4.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gogyzzz/beamformit_matlab/ab0cc4c265e069ba98b541e6cf0324258382358d/sample11/M05_443C0207_PED.CH4.wav -------------------------------------------------------------------------------- /sample11/M05_443C0207_PED.CH5.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gogyzzz/beamformit_matlab/ab0cc4c265e069ba98b541e6cf0324258382358d/sample11/M05_443C0207_PED.CH5.wav -------------------------------------------------------------------------------- /sample11/M05_443C0207_PED.CH6.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gogyzzz/beamformit_matlab/ab0cc4c265e069ba98b541e6cf0324258382358d/sample11/M05_443C0207_PED.CH6.wav -------------------------------------------------------------------------------- /sample11/enhan.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gogyzzz/beamformit_matlab/ab0cc4c265e069ba98b541e6cf0324258382358d/sample11/enhan.wav -------------------------------------------------------------------------------- /sample11/orig_enhan.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gogyzzz/beamformit_matlab/ab0cc4c265e069ba98b541e6cf0324258382358d/sample11/orig_enhan.wav -------------------------------------------------------------------------------- /sample11/wav.list: -------------------------------------------------------------------------------- 1 | path 2 | sample11/M05_443C0207_PED.CH1.wav 3 | sample11/M05_443C0207_PED.CH3.wav 4 | sample11/M05_443C0207_PED.CH4.wav 5 | sample11/M05_443C0207_PED.CH5.wav 6 | sample11/M05_443C0207_PED.CH6.wav 7 | -------------------------------------------------------------------------------- /sample12/F04_421C0207_BUS.CH1.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gogyzzz/beamformit_matlab/ab0cc4c265e069ba98b541e6cf0324258382358d/sample12/F04_421C0207_BUS.CH1.wav -------------------------------------------------------------------------------- /sample12/F04_421C0207_BUS.CH3.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gogyzzz/beamformit_matlab/ab0cc4c265e069ba98b541e6cf0324258382358d/sample12/F04_421C0207_BUS.CH3.wav -------------------------------------------------------------------------------- /sample12/F04_421C0207_BUS.CH4.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gogyzzz/beamformit_matlab/ab0cc4c265e069ba98b541e6cf0324258382358d/sample12/F04_421C0207_BUS.CH4.wav -------------------------------------------------------------------------------- /sample12/F04_421C0207_BUS.CH5.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gogyzzz/beamformit_matlab/ab0cc4c265e069ba98b541e6cf0324258382358d/sample12/F04_421C0207_BUS.CH5.wav -------------------------------------------------------------------------------- /sample12/F04_421C0207_BUS.CH6.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gogyzzz/beamformit_matlab/ab0cc4c265e069ba98b541e6cf0324258382358d/sample12/F04_421C0207_BUS.CH6.wav -------------------------------------------------------------------------------- /sample12/enhan.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gogyzzz/beamformit_matlab/ab0cc4c265e069ba98b541e6cf0324258382358d/sample12/enhan.wav -------------------------------------------------------------------------------- /sample12/log: -------------------------------------------------------------------------------- 1 | Parameters settings(some of them): 2 | Mandatory parameters: 3 | scroll_size: 250 4 | window_size: 500 5 | source_dir: 6 | show_id: sample12 7 | result_dir: ./output/sample12 8 | channels_file: ./output/sample12/channels_file 9 | Optional parameters: 10 | uem_file: 11 | delay_variance: 5 12 | ovl_variance: 20 13 | do_optimum delays: 1 14 | do_indiv_channels: 0 15 | output_format: 0 16 | do_xcorr_reference: 1 17 | nbest_amount: 4 18 | reference_channel: 0 19 | Transition nbest probability: 25.000000 20 | Percentage of noisy xcorr values: 10.000000 21 | Creating necessary directories 22 | Opening the input channels 23 | Extracting channel information for show sample12 24 | File 0: /home/haeyong/beamformit/sample12/F04_421C0207_BUS.CH1.wav 25 | File 1: /home/haeyong/beamformit/sample12/F04_421C0207_BUS.CH3.wav 26 | File 2: /home/haeyong/beamformit/sample12/F04_421C0207_BUS.CH4.wav 27 | File 3: /home/haeyong/beamformit/sample12/F04_421C0207_BUS.CH5.wav 28 | File 4: /home/haeyong/beamformit/sample12/F04_421C0207_BUS.CH6.wav 29 | Filename: //home/haeyong/beamformit/sample12/F04_421C0207_BUS.CH1.wav 30 | File //home/haeyong/beamformit/sample12/F04_421C0207_BUS.CH1.wav (1 channels) open 31 | Filename: //home/haeyong/beamformit/sample12/F04_421C0207_BUS.CH3.wav 32 | File //home/haeyong/beamformit/sample12/F04_421C0207_BUS.CH3.wav (1 channels) open 33 | Filename: //home/haeyong/beamformit/sample12/F04_421C0207_BUS.CH4.wav 34 | File //home/haeyong/beamformit/sample12/F04_421C0207_BUS.CH4.wav (1 channels) open 35 | Filename: //home/haeyong/beamformit/sample12/F04_421C0207_BUS.CH5.wav 36 | File //home/haeyong/beamformit/sample12/F04_421C0207_BUS.CH5.wav (1 channels) open 37 | Filename: //home/haeyong/beamformit/sample12/F04_421C0207_BUS.CH6.wav 38 | File //home/haeyong/beamformit/sample12/F04_421C0207_BUS.CH6.wav (1 channels) open 39 | NumChannels is: 5, sampling rate is 16000 40 | Opening output channels 41 | Opening ./output/sample12/sample12.wav file 42 | Marginst for delays in frames: 480 in ms: 30 43 | Initializing...Total number of delays to be computed: 4 44 | Using an fft window of 8192 points for the window of 8000 points 45 | finished 46 | Setting the reference channel 47 | Determining the reference channel via average xcorr values 48 | frames: 27833 49 | Amount of scroll: 137 50 | Comparing from frame 137 to 16137 51 | 1st xcorr calculation iteration 1: 0.467956 52 | 2nd xcorr calculation iteration 1: 0.182802 53 | Comparing from frame 274 to 16274 54 | 1st xcorr calculation iteration 2: 0.468335 55 | 2nd xcorr calculation iteration 2: 0.183371 56 | Comparing from frame 411 to 16411 57 | 1st xcorr calculation iteration 3: 0.466639 58 | 2nd xcorr calculation iteration 3: 0.179195 59 | Comparing from frame 548 to 16548 60 | 1st xcorr calculation iteration 4: 0.466589 61 | 2nd xcorr calculation iteration 4: 0.173012 62 | Comparing from frame 685 to 16685 63 | 1st xcorr calculation iteration 5: 0.470742 64 | 2nd xcorr calculation iteration 5: 0.173980 65 | Comparing from frame 822 to 16822 66 | 1st xcorr calculation iteration 6: 0.467015 67 | 2nd xcorr calculation iteration 6: 0.167085 68 | Comparing from frame 959 to 16959 69 | 1st xcorr calculation iteration 7: 0.469639 70 | 2nd xcorr calculation iteration 7: 0.167430 71 | Comparing from frame 1096 to 17096 72 | 1st xcorr calculation iteration 8: 0.472376 73 | 2nd xcorr calculation iteration 8: 0.166882 74 | Comparing from frame 1233 to 17233 75 | 1st xcorr calculation iteration 9: 0.482794 76 | 2nd xcorr calculation iteration 9: 0.174489 77 | Comparing from frame 1370 to 17370 78 | 1st xcorr calculation iteration 10: 0.482348 79 | 2nd xcorr calculation iteration 10: 0.171047 80 | Comparing from frame 1507 to 17507 81 | 1st xcorr calculation iteration 11: 0.485190 82 | 2nd xcorr calculation iteration 11: 0.170610 83 | Comparing from frame 1644 to 17644 84 | 1st xcorr calculation iteration 12: 0.496144 85 | 2nd xcorr calculation iteration 12: 0.179051 86 | Comparing from frame 1781 to 17781 87 | 1st xcorr calculation iteration 13: 0.492792 88 | 2nd xcorr calculation iteration 13: 0.173650 89 | Comparing from frame 1918 to 17918 90 | 1st xcorr calculation iteration 14: 0.496379 91 | 2nd xcorr calculation iteration 14: 0.173696 92 | Comparing from frame 2055 to 18055 93 | 1st xcorr calculation iteration 15: 0.492106 94 | 2nd xcorr calculation iteration 15: 0.167940 95 | Comparing from frame 2192 to 18192 96 | 1st xcorr calculation iteration 16: 0.507831 97 | 2nd xcorr calculation iteration 16: 0.179680 98 | Comparing from frame 2329 to 18329 99 | 1st xcorr calculation iteration 17: 0.510531 100 | 2nd xcorr calculation iteration 17: 0.179623 101 | Comparing from frame 2466 to 18466 102 | 1st xcorr calculation iteration 18: 0.509149 103 | 2nd xcorr calculation iteration 18: 0.176941 104 | Comparing from frame 2603 to 18603 105 | 1st xcorr calculation iteration 19: 0.514874 106 | 2nd xcorr calculation iteration 19: 0.180469 107 | Comparing from frame 2740 to 18740 108 | 1st xcorr calculation iteration 20: 0.517229 109 | 2nd xcorr calculation iteration 20: 0.182047 110 | Comparing from frame 2877 to 18877 111 | 1st xcorr calculation iteration 21: 0.521260 112 | 2nd xcorr calculation iteration 21: 0.184793 113 | Comparing from frame 3014 to 19014 114 | 1st xcorr calculation iteration 22: 0.524535 115 | 2nd xcorr calculation iteration 22: 0.187619 116 | Comparing from frame 3151 to 19151 117 | 1st xcorr calculation iteration 23: 0.519290 118 | 2nd xcorr calculation iteration 23: 0.182922 119 | Comparing from frame 3288 to 19288 120 | 1st xcorr calculation iteration 24: 0.525435 121 | 2nd xcorr calculation iteration 24: 0.187853 122 | Comparing from frame 3425 to 19425 123 | 1st xcorr calculation iteration 25: 0.529343 124 | 2nd xcorr calculation iteration 25: 0.192055 125 | Comparing from frame 3562 to 19562 126 | 1st xcorr calculation iteration 26: 0.524319 127 | 2nd xcorr calculation iteration 26: 0.186701 128 | Comparing from frame 3699 to 19699 129 | 1st xcorr calculation iteration 27: 0.531535 130 | 2nd xcorr calculation iteration 27: 0.193860 131 | Comparing from frame 3836 to 19836 132 | 1st xcorr calculation iteration 28: 0.539865 133 | 2nd xcorr calculation iteration 28: 0.201527 134 | Comparing from frame 3973 to 19973 135 | 1st xcorr calculation iteration 29: 0.532089 136 | 2nd xcorr calculation iteration 29: 0.193948 137 | Comparing from frame 4110 to 20110 138 | 1st xcorr calculation iteration 30: 0.537385 139 | 2nd xcorr calculation iteration 30: 0.198460 140 | Comparing from frame 4247 to 20247 141 | 1st xcorr calculation iteration 31: 0.537351 142 | 2nd xcorr calculation iteration 31: 0.198766 143 | Comparing from frame 4384 to 20384 144 | 1st xcorr calculation iteration 32: 0.539686 145 | 2nd xcorr calculation iteration 32: 0.200964 146 | Comparing from frame 4521 to 20521 147 | 1st xcorr calculation iteration 33: 0.542316 148 | 2nd xcorr calculation iteration 33: 0.203268 149 | Comparing from frame 4658 to 20658 150 | 1st xcorr calculation iteration 34: 0.538989 151 | 2nd xcorr calculation iteration 34: 0.199418 152 | Comparing from frame 4795 to 20795 153 | 1st xcorr calculation iteration 35: 0.535354 154 | 2nd xcorr calculation iteration 35: 0.196707 155 | Comparing from frame 4932 to 20932 156 | 1st xcorr calculation iteration 36: 0.539363 157 | 2nd xcorr calculation iteration 36: 0.200909 158 | Comparing from frame 5069 to 21069 159 | 1st xcorr calculation iteration 37: 0.537328 160 | 2nd xcorr calculation iteration 37: 0.199893 161 | Comparing from frame 5206 to 21206 162 | 1st xcorr calculation iteration 38: 0.542926 163 | 2nd xcorr calculation iteration 38: 0.205482 164 | Comparing from frame 5343 to 21343 165 | 1st xcorr calculation iteration 39: 0.539944 166 | 2nd xcorr calculation iteration 39: 0.201816 167 | Comparing from frame 5480 to 21480 168 | 1st xcorr calculation iteration 40: 0.540477 169 | 2nd xcorr calculation iteration 40: 0.201733 170 | Comparing from frame 5617 to 21617 171 | 1st xcorr calculation iteration 41: 0.545292 172 | 2nd xcorr calculation iteration 41: 0.206018 173 | Comparing from frame 5754 to 21754 174 | 1st xcorr calculation iteration 42: 0.543569 175 | 2nd xcorr calculation iteration 42: 0.205134 176 | Comparing from frame 5891 to 21891 177 | 1st xcorr calculation iteration 43: 0.542556 178 | 2nd xcorr calculation iteration 43: 0.204394 179 | Comparing from frame 6028 to 22028 180 | 1st xcorr calculation iteration 44: 0.539628 181 | 2nd xcorr calculation iteration 44: 0.201885 182 | Comparing from frame 6165 to 22165 183 | 1st xcorr calculation iteration 45: 0.544064 184 | 2nd xcorr calculation iteration 45: 0.205301 185 | Comparing from frame 6302 to 22302 186 | 1st xcorr calculation iteration 46: 0.541097 187 | 2nd xcorr calculation iteration 46: 0.202191 188 | Comparing from frame 6439 to 22439 189 | 1st xcorr calculation iteration 47: 0.541391 190 | 2nd xcorr calculation iteration 47: 0.202390 191 | Comparing from frame 6576 to 22576 192 | 1st xcorr calculation iteration 48: 0.545130 193 | 2nd xcorr calculation iteration 48: 0.206193 194 | Comparing from frame 6713 to 22713 195 | 1st xcorr calculation iteration 49: 0.551034 196 | 2nd xcorr calculation iteration 49: 0.210465 197 | Comparing from frame 6850 to 22850 198 | 1st xcorr calculation iteration 50: 0.540377 199 | 2nd xcorr calculation iteration 50: 0.200006 200 | Comparing from frame 6987 to 22987 201 | 1st xcorr calculation iteration 51: 0.556834 202 | 2nd xcorr calculation iteration 51: 0.214840 203 | Comparing from frame 7124 to 23124 204 | 1st xcorr calculation iteration 52: 0.551620 205 | 2nd xcorr calculation iteration 52: 0.209390 206 | Comparing from frame 7261 to 23261 207 | 1st xcorr calculation iteration 53: 0.541066 208 | 2nd xcorr calculation iteration 53: 0.198794 209 | Comparing from frame 7398 to 23398 210 | 1st xcorr calculation iteration 54: 0.555101 211 | 2nd xcorr calculation iteration 54: 0.212861 212 | Comparing from frame 7535 to 23535 213 | 1st xcorr calculation iteration 55: 0.543422 214 | 2nd xcorr calculation iteration 55: 0.200927 215 | Comparing from frame 7672 to 23672 216 | 1st xcorr calculation iteration 56: 0.537498 217 | 2nd xcorr calculation iteration 56: 0.196962 218 | Comparing from frame 7809 to 23809 219 | 1st xcorr calculation iteration 57: 0.543455 220 | 2nd xcorr calculation iteration 57: 0.203298 221 | Comparing from frame 7946 to 23946 222 | 1st xcorr calculation iteration 58: 0.540520 223 | 2nd xcorr calculation iteration 58: 0.200991 224 | Comparing from frame 8083 to 24083 225 | 1st xcorr calculation iteration 59: 0.548156 226 | 2nd xcorr calculation iteration 59: 0.207500 227 | Comparing from frame 8220 to 24220 228 | 1st xcorr calculation iteration 60: 0.544054 229 | 2nd xcorr calculation iteration 60: 0.204642 230 | Comparing from frame 8357 to 24357 231 | 1st xcorr calculation iteration 61: 0.537139 232 | 2nd xcorr calculation iteration 61: 0.198260 233 | Comparing from frame 8494 to 24494 234 | 1st xcorr calculation iteration 62: 0.532342 235 | 2nd xcorr calculation iteration 62: 0.194502 236 | Comparing from frame 8631 to 24631 237 | 1st xcorr calculation iteration 63: 0.535122 238 | 2nd xcorr calculation iteration 63: 0.198795 239 | Comparing from frame 8768 to 24768 240 | 1st xcorr calculation iteration 64: 0.534657 241 | 2nd xcorr calculation iteration 64: 0.198179 242 | Comparing from frame 8905 to 24905 243 | 1st xcorr calculation iteration 65: 0.545050 244 | 2nd xcorr calculation iteration 65: 0.209052 245 | Comparing from frame 9042 to 25042 246 | 1st xcorr calculation iteration 66: 0.529129 247 | 2nd xcorr calculation iteration 66: 0.194850 248 | Comparing from frame 9179 to 25179 249 | 1st xcorr calculation iteration 67: 0.528495 250 | 2nd xcorr calculation iteration 67: 0.194949 251 | Comparing from frame 9316 to 25316 252 | 1st xcorr calculation iteration 68: 0.534671 253 | 2nd xcorr calculation iteration 68: 0.201751 254 | Comparing from frame 9453 to 25453 255 | 1st xcorr calculation iteration 69: 0.547989 256 | 2nd xcorr calculation iteration 69: 0.218072 257 | Comparing from frame 9590 to 25590 258 | 1st xcorr calculation iteration 70: 0.534614 259 | 2nd xcorr calculation iteration 70: 0.204398 260 | Comparing from frame 9727 to 25727 261 | 1st xcorr calculation iteration 71: 0.546359 262 | 2nd xcorr calculation iteration 71: 0.217226 263 | Comparing from frame 9864 to 25864 264 | 1st xcorr calculation iteration 72: 0.520183 265 | 2nd xcorr calculation iteration 72: 0.192484 266 | Comparing from frame 10001 to 26001 267 | 1st xcorr calculation iteration 73: 0.518534 268 | 2nd xcorr calculation iteration 73: 0.190750 269 | Comparing from frame 10138 to 26138 270 | 1st xcorr calculation iteration 74: 0.537845 271 | 2nd xcorr calculation iteration 74: 0.211987 272 | Comparing from frame 10275 to 26275 273 | 1st xcorr calculation iteration 75: 0.535599 274 | 2nd xcorr calculation iteration 75: 0.209637 275 | Comparing from frame 10412 to 26412 276 | 1st xcorr calculation iteration 76: 0.519973 277 | 2nd xcorr calculation iteration 76: 0.195967 278 | Comparing from frame 10549 to 26549 279 | 1st xcorr calculation iteration 77: 0.512988 280 | 2nd xcorr calculation iteration 77: 0.190952 281 | Comparing from frame 10686 to 26686 282 | 1st xcorr calculation iteration 78: 0.505558 283 | 2nd xcorr calculation iteration 78: 0.186864 284 | Comparing from frame 10823 to 26823 285 | 1st xcorr calculation iteration 79: 0.507183 286 | 2nd xcorr calculation iteration 79: 0.189510 287 | Comparing from frame 10960 to 26960 288 | 1st xcorr calculation iteration 80: 0.504342 289 | 2nd xcorr calculation iteration 80: 0.189073 290 | Comparing from frame 11097 to 27097 291 | 1st xcorr calculation iteration 81: 0.510290 292 | 2nd xcorr calculation iteration 81: 0.194915 293 | Comparing from frame 11234 to 27234 294 | 1st xcorr calculation iteration 82: 0.499321 295 | 2nd xcorr calculation iteration 82: 0.186009 296 | Comparing from frame 11371 to 27371 297 | 1st xcorr calculation iteration 83: 0.511708 298 | 2nd xcorr calculation iteration 83: 0.198755 299 | amount_computed_pieces: 200 300 | numNbest: 2 301 | average_xcorr before divided: 59.483212 302 | Average xcorr final: 0.148708 303 | Computing the average xcorr between 0 and 1 304 | the xcorr_values between 0 and 1 is 0.148708 305 | frames: 27833 306 | Amount of scroll: 137 307 | Comparing from frame 137 to 16137 308 | 1st xcorr calculation iteration 1: 0.341056 309 | 2nd xcorr calculation iteration 1: 0.092541 310 | Comparing from frame 274 to 16274 311 | 1st xcorr calculation iteration 2: 0.350434 312 | 2nd xcorr calculation iteration 2: 0.104016 313 | Comparing from frame 411 to 16411 314 | 1st xcorr calculation iteration 3: 0.335063 315 | 2nd xcorr calculation iteration 3: 0.095042 316 | Comparing from frame 548 to 16548 317 | 1st xcorr calculation iteration 4: 0.348592 318 | 2nd xcorr calculation iteration 4: 0.100443 319 | Comparing from frame 685 to 16685 320 | 1st xcorr calculation iteration 5: 0.353777 321 | 2nd xcorr calculation iteration 5: 0.104636 322 | Comparing from frame 822 to 16822 323 | 1st xcorr calculation iteration 6: 0.360305 324 | 2nd xcorr calculation iteration 6: 0.109488 325 | Comparing from frame 959 to 16959 326 | 1st xcorr calculation iteration 7: 0.363460 327 | 2nd xcorr calculation iteration 7: 0.111735 328 | Comparing from frame 1096 to 17096 329 | 1st xcorr calculation iteration 8: 0.358055 330 | 2nd xcorr calculation iteration 8: 0.106843 331 | Comparing from frame 1233 to 17233 332 | 1st xcorr calculation iteration 9: 0.367689 333 | 2nd xcorr calculation iteration 9: 0.116223 334 | Comparing from frame 1370 to 17370 335 | 1st xcorr calculation iteration 10: 0.365426 336 | 2nd xcorr calculation iteration 10: 0.114320 337 | Comparing from frame 1507 to 17507 338 | 1st xcorr calculation iteration 11: 0.362985 339 | 2nd xcorr calculation iteration 11: 0.112989 340 | Comparing from frame 1644 to 17644 341 | 1st xcorr calculation iteration 12: 0.367273 342 | 2nd xcorr calculation iteration 12: 0.118237 343 | Comparing from frame 1781 to 17781 344 | 1st xcorr calculation iteration 13: 0.374620 345 | 2nd xcorr calculation iteration 13: 0.126081 346 | Comparing from frame 1918 to 17918 347 | 1st xcorr calculation iteration 14: 0.384527 348 | 2nd xcorr calculation iteration 14: 0.137379 349 | Comparing from frame 2055 to 18055 350 | 1st xcorr calculation iteration 15: 0.387379 351 | 2nd xcorr calculation iteration 15: 0.140496 352 | Comparing from frame 2192 to 18192 353 | 1st xcorr calculation iteration 16: 0.382949 354 | 2nd xcorr calculation iteration 16: 0.141216 355 | Comparing from frame 2329 to 18329 356 | 1st xcorr calculation iteration 17: 0.374505 357 | 2nd xcorr calculation iteration 17: 0.135080 358 | Comparing from frame 2466 to 18466 359 | 1st xcorr calculation iteration 18: 0.393742 360 | 2nd xcorr calculation iteration 18: 0.156136 361 | Comparing from frame 2603 to 18603 362 | 1st xcorr calculation iteration 19: 0.392236 363 | 2nd xcorr calculation iteration 19: 0.157484 364 | Comparing from frame 2740 to 18740 365 | 1st xcorr calculation iteration 20: 0.394574 366 | 2nd xcorr calculation iteration 20: 0.163148 367 | Comparing from frame 2877 to 18877 368 | 1st xcorr calculation iteration 21: 0.400053 369 | 2nd xcorr calculation iteration 21: 0.170482 370 | Comparing from frame 3014 to 19014 371 | 1st xcorr calculation iteration 22: 0.401664 372 | 2nd xcorr calculation iteration 22: 0.174763 373 | Comparing from frame 3151 to 19151 374 | 1st xcorr calculation iteration 23: 0.402588 375 | 2nd xcorr calculation iteration 23: 0.177007 376 | Comparing from frame 3288 to 19288 377 | 1st xcorr calculation iteration 24: 0.407839 378 | 2nd xcorr calculation iteration 24: 0.185173 379 | Comparing from frame 3425 to 19425 380 | 1st xcorr calculation iteration 25: 0.411092 381 | 2nd xcorr calculation iteration 25: 0.190235 382 | Comparing from frame 3562 to 19562 383 | 1st xcorr calculation iteration 26: 0.414299 384 | 2nd xcorr calculation iteration 26: 0.195226 385 | Comparing from frame 3699 to 19699 386 | 1st xcorr calculation iteration 27: 0.416051 387 | 2nd xcorr calculation iteration 27: 0.200360 388 | Comparing from frame 3836 to 19836 389 | 1st xcorr calculation iteration 28: 0.417069 390 | 2nd xcorr calculation iteration 28: 0.204410 391 | Comparing from frame 3973 to 19973 392 | 1st xcorr calculation iteration 29: 0.416722 393 | 2nd xcorr calculation iteration 29: 0.207812 394 | Comparing from frame 4110 to 20110 395 | 1st xcorr calculation iteration 30: 0.417234 396 | 2nd xcorr calculation iteration 30: 0.211847 397 | Comparing from frame 4247 to 20247 398 | 1st xcorr calculation iteration 31: 0.413173 399 | 2nd xcorr calculation iteration 31: 0.210500 400 | Comparing from frame 4384 to 20384 401 | 1st xcorr calculation iteration 32: 0.411731 402 | 2nd xcorr calculation iteration 32: 0.211111 403 | Comparing from frame 4521 to 20521 404 | 1st xcorr calculation iteration 33: 0.418046 405 | 2nd xcorr calculation iteration 33: 0.219347 406 | Comparing from frame 4658 to 20658 407 | 1st xcorr calculation iteration 34: 0.413518 408 | 2nd xcorr calculation iteration 34: 0.217710 409 | Comparing from frame 4795 to 20795 410 | 1st xcorr calculation iteration 35: 0.424203 411 | 2nd xcorr calculation iteration 35: 0.229632 412 | Comparing from frame 4932 to 20932 413 | 1st xcorr calculation iteration 36: 0.422805 414 | 2nd xcorr calculation iteration 36: 0.231029 415 | Comparing from frame 5069 to 21069 416 | 1st xcorr calculation iteration 37: 0.422986 417 | 2nd xcorr calculation iteration 37: 0.232956 418 | Comparing from frame 5206 to 21206 419 | 1st xcorr calculation iteration 38: 0.423280 420 | 2nd xcorr calculation iteration 38: 0.235736 421 | Comparing from frame 5343 to 21343 422 | 1st xcorr calculation iteration 39: 0.418032 423 | 2nd xcorr calculation iteration 39: 0.232819 424 | Comparing from frame 5480 to 21480 425 | 1st xcorr calculation iteration 40: 0.418932 426 | 2nd xcorr calculation iteration 40: 0.235292 427 | Comparing from frame 5617 to 21617 428 | 1st xcorr calculation iteration 41: 0.427266 429 | 2nd xcorr calculation iteration 41: 0.244190 430 | Comparing from frame 5754 to 21754 431 | 1st xcorr calculation iteration 42: 0.427236 432 | 2nd xcorr calculation iteration 42: 0.245906 433 | Comparing from frame 5891 to 21891 434 | 1st xcorr calculation iteration 43: 0.420591 435 | 2nd xcorr calculation iteration 43: 0.242038 436 | Comparing from frame 6028 to 22028 437 | 1st xcorr calculation iteration 44: 0.427465 438 | 2nd xcorr calculation iteration 44: 0.248757 439 | Comparing from frame 6165 to 22165 440 | 1st xcorr calculation iteration 45: 0.424532 441 | 2nd xcorr calculation iteration 45: 0.246006 442 | Comparing from frame 6302 to 22302 443 | 1st xcorr calculation iteration 46: 0.425713 444 | 2nd xcorr calculation iteration 46: 0.247614 445 | Comparing from frame 6439 to 22439 446 | 1st xcorr calculation iteration 47: 0.424887 447 | 2nd xcorr calculation iteration 47: 0.247636 448 | Comparing from frame 6576 to 22576 449 | 1st xcorr calculation iteration 48: 0.424118 450 | 2nd xcorr calculation iteration 48: 0.247132 451 | Comparing from frame 6713 to 22713 452 | 1st xcorr calculation iteration 49: 0.415953 453 | 2nd xcorr calculation iteration 49: 0.240168 454 | Comparing from frame 6850 to 22850 455 | 1st xcorr calculation iteration 50: 0.428199 456 | 2nd xcorr calculation iteration 50: 0.251609 457 | Comparing from frame 6987 to 22987 458 | 1st xcorr calculation iteration 51: 0.420768 459 | 2nd xcorr calculation iteration 51: 0.245182 460 | Comparing from frame 7124 to 23124 461 | 1st xcorr calculation iteration 52: 0.425437 462 | 2nd xcorr calculation iteration 52: 0.250096 463 | Comparing from frame 7261 to 23261 464 | 1st xcorr calculation iteration 53: 0.429755 465 | 2nd xcorr calculation iteration 53: 0.255583 466 | Comparing from frame 7398 to 23398 467 | 1st xcorr calculation iteration 54: 0.410505 468 | 2nd xcorr calculation iteration 54: 0.240075 469 | Comparing from frame 7535 to 23535 470 | 1st xcorr calculation iteration 55: 0.419028 471 | 2nd xcorr calculation iteration 55: 0.249755 472 | Comparing from frame 7672 to 23672 473 | 1st xcorr calculation iteration 56: 0.424239 474 | 2nd xcorr calculation iteration 56: 0.255651 475 | Comparing from frame 7809 to 23809 476 | 1st xcorr calculation iteration 57: 0.411149 477 | 2nd xcorr calculation iteration 57: 0.244728 478 | Comparing from frame 7946 to 23946 479 | 1st xcorr calculation iteration 58: 0.414011 480 | 2nd xcorr calculation iteration 58: 0.248765 481 | Comparing from frame 8083 to 24083 482 | 1st xcorr calculation iteration 59: 0.415514 483 | 2nd xcorr calculation iteration 59: 0.251306 484 | Comparing from frame 8220 to 24220 485 | 1st xcorr calculation iteration 60: 0.419742 486 | 2nd xcorr calculation iteration 60: 0.256563 487 | Comparing from frame 8357 to 24357 488 | 1st xcorr calculation iteration 61: 0.412587 489 | 2nd xcorr calculation iteration 61: 0.251553 490 | Comparing from frame 8494 to 24494 491 | 1st xcorr calculation iteration 62: 0.420114 492 | 2nd xcorr calculation iteration 62: 0.257541 493 | Comparing from frame 8631 to 24631 494 | 1st xcorr calculation iteration 63: 0.415642 495 | 2nd xcorr calculation iteration 63: 0.254640 496 | Comparing from frame 8768 to 24768 497 | 1st xcorr calculation iteration 64: 0.411778 498 | 2nd xcorr calculation iteration 64: 0.252207 499 | Comparing from frame 8905 to 24905 500 | 1st xcorr calculation iteration 65: 0.411935 501 | 2nd xcorr calculation iteration 65: 0.252316 502 | Comparing from frame 9042 to 25042 503 | 1st xcorr calculation iteration 66: 0.402556 504 | 2nd xcorr calculation iteration 66: 0.243540 505 | Comparing from frame 9179 to 25179 506 | 1st xcorr calculation iteration 67: 0.409183 507 | 2nd xcorr calculation iteration 67: 0.251324 508 | Comparing from frame 9316 to 25316 509 | 1st xcorr calculation iteration 68: 0.399212 510 | 2nd xcorr calculation iteration 68: 0.242955 511 | Comparing from frame 9453 to 25453 512 | 1st xcorr calculation iteration 69: 0.414381 513 | 2nd xcorr calculation iteration 69: 0.257358 514 | Comparing from frame 9590 to 25590 515 | 1st xcorr calculation iteration 70: 0.411449 516 | 2nd xcorr calculation iteration 70: 0.255758 517 | Comparing from frame 9727 to 25727 518 | 1st xcorr calculation iteration 71: 0.412119 519 | 2nd xcorr calculation iteration 71: 0.255540 520 | Comparing from frame 9864 to 25864 521 | 1st xcorr calculation iteration 72: 0.404052 522 | 2nd xcorr calculation iteration 72: 0.250926 523 | Comparing from frame 10001 to 26001 524 | 1st xcorr calculation iteration 73: 0.405501 525 | 2nd xcorr calculation iteration 73: 0.253069 526 | Comparing from frame 10138 to 26138 527 | 1st xcorr calculation iteration 74: 0.397593 528 | 2nd xcorr calculation iteration 74: 0.247206 529 | Comparing from frame 10275 to 26275 530 | 1st xcorr calculation iteration 75: 0.381016 531 | 2nd xcorr calculation iteration 75: 0.233702 532 | Comparing from frame 10412 to 26412 533 | 1st xcorr calculation iteration 76: 0.389510 534 | 2nd xcorr calculation iteration 76: 0.244797 535 | Comparing from frame 10549 to 26549 536 | 1st xcorr calculation iteration 77: 0.389129 537 | 2nd xcorr calculation iteration 77: 0.245960 538 | Comparing from frame 10686 to 26686 539 | 1st xcorr calculation iteration 78: 0.388520 540 | 2nd xcorr calculation iteration 78: 0.247473 541 | Comparing from frame 10823 to 26823 542 | 1st xcorr calculation iteration 79: 0.385907 543 | 2nd xcorr calculation iteration 79: 0.246965 544 | Comparing from frame 10960 to 26960 545 | 1st xcorr calculation iteration 80: 0.385322 546 | 2nd xcorr calculation iteration 80: 0.247745 547 | Comparing from frame 11097 to 27097 548 | 1st xcorr calculation iteration 81: 0.374375 549 | 2nd xcorr calculation iteration 81: 0.241388 550 | Comparing from frame 11234 to 27234 551 | 1st xcorr calculation iteration 82: 0.376715 552 | 2nd xcorr calculation iteration 82: 0.246067 553 | Comparing from frame 11371 to 27371 554 | 1st xcorr calculation iteration 83: 0.373333 555 | 2nd xcorr calculation iteration 83: 0.245481 556 | amount_computed_pieces: 200 557 | numNbest: 2 558 | average_xcorr before divided: 50.559261 559 | Average xcorr final: 0.126398 560 | Computing the average xcorr between 0 and 2 561 | the xcorr_values between 0 and 2 is 0.126398 562 | frames: 27833 563 | Amount of scroll: 137 564 | Comparing from frame 137 to 16137 565 | 1st xcorr calculation iteration 1: 0.333369 566 | 2nd xcorr calculation iteration 1: 0.160730 567 | Comparing from frame 274 to 16274 568 | 1st xcorr calculation iteration 2: 0.326189 569 | 2nd xcorr calculation iteration 2: 0.152923 570 | Comparing from frame 411 to 16411 571 | 1st xcorr calculation iteration 3: 0.332133 572 | 2nd xcorr calculation iteration 3: 0.156402 573 | Comparing from frame 548 to 16548 574 | 1st xcorr calculation iteration 4: 0.340763 575 | 2nd xcorr calculation iteration 4: 0.159459 576 | Comparing from frame 685 to 16685 577 | 1st xcorr calculation iteration 5: 0.346001 578 | 2nd xcorr calculation iteration 5: 0.162423 579 | Comparing from frame 822 to 16822 580 | 1st xcorr calculation iteration 6: 0.342258 581 | 2nd xcorr calculation iteration 6: 0.157252 582 | Comparing from frame 959 to 16959 583 | 1st xcorr calculation iteration 7: 0.341229 584 | 2nd xcorr calculation iteration 7: 0.153852 585 | Comparing from frame 1096 to 17096 586 | 1st xcorr calculation iteration 8: 0.337159 587 | 2nd xcorr calculation iteration 8: 0.148257 588 | Comparing from frame 1233 to 17233 589 | 1st xcorr calculation iteration 9: 0.353584 590 | 2nd xcorr calculation iteration 9: 0.162149 591 | Comparing from frame 1370 to 17370 592 | 1st xcorr calculation iteration 10: 0.354851 593 | 2nd xcorr calculation iteration 10: 0.160927 594 | Comparing from frame 1507 to 17507 595 | 1st xcorr calculation iteration 11: 0.349692 596 | 2nd xcorr calculation iteration 11: 0.153701 597 | Comparing from frame 1644 to 17644 598 | 1st xcorr calculation iteration 12: 0.353406 599 | 2nd xcorr calculation iteration 12: 0.154916 600 | Comparing from frame 1781 to 17781 601 | 1st xcorr calculation iteration 13: 0.362629 602 | 2nd xcorr calculation iteration 13: 0.160929 603 | Comparing from frame 1918 to 17918 604 | 1st xcorr calculation iteration 14: 0.367818 605 | 2nd xcorr calculation iteration 14: 0.163546 606 | Comparing from frame 2055 to 18055 607 | 1st xcorr calculation iteration 15: 0.371652 608 | 2nd xcorr calculation iteration 15: 0.164086 609 | Comparing from frame 2192 to 18192 610 | 1st xcorr calculation iteration 16: 0.369577 611 | 2nd xcorr calculation iteration 16: 0.160221 612 | Comparing from frame 2329 to 18329 613 | 1st xcorr calculation iteration 17: 0.370168 614 | 2nd xcorr calculation iteration 17: 0.158365 615 | Comparing from frame 2466 to 18466 616 | 1st xcorr calculation iteration 18: 0.378776 617 | 2nd xcorr calculation iteration 18: 0.164093 618 | Comparing from frame 2603 to 18603 619 | 1st xcorr calculation iteration 19: 0.377792 620 | 2nd xcorr calculation iteration 19: 0.161689 621 | Comparing from frame 2740 to 18740 622 | 1st xcorr calculation iteration 20: 0.382288 623 | 2nd xcorr calculation iteration 20: 0.163637 624 | Comparing from frame 2877 to 18877 625 | 1st xcorr calculation iteration 21: 0.385358 626 | 2nd xcorr calculation iteration 21: 0.164556 627 | Comparing from frame 3014 to 19014 628 | 1st xcorr calculation iteration 22: 0.387830 629 | 2nd xcorr calculation iteration 22: 0.164684 630 | Comparing from frame 3151 to 19151 631 | 1st xcorr calculation iteration 23: 0.388910 632 | 2nd xcorr calculation iteration 23: 0.163705 633 | Comparing from frame 3288 to 19288 634 | 1st xcorr calculation iteration 24: 0.393775 635 | 2nd xcorr calculation iteration 24: 0.166858 636 | Comparing from frame 3425 to 19425 637 | 1st xcorr calculation iteration 25: 0.396342 638 | 2nd xcorr calculation iteration 25: 0.167238 639 | Comparing from frame 3562 to 19562 640 | 1st xcorr calculation iteration 26: 0.399083 641 | 2nd xcorr calculation iteration 26: 0.168233 642 | Comparing from frame 3699 to 19699 643 | 1st xcorr calculation iteration 27: 0.401204 644 | 2nd xcorr calculation iteration 27: 0.169220 645 | Comparing from frame 3836 to 19836 646 | 1st xcorr calculation iteration 28: 0.402740 647 | 2nd xcorr calculation iteration 28: 0.169432 648 | Comparing from frame 3973 to 19973 649 | 1st xcorr calculation iteration 29: 0.404484 650 | 2nd xcorr calculation iteration 29: 0.169861 651 | Comparing from frame 4110 to 20110 652 | 1st xcorr calculation iteration 30: 0.405869 653 | 2nd xcorr calculation iteration 30: 0.170902 654 | Comparing from frame 4247 to 20247 655 | 1st xcorr calculation iteration 31: 0.407227 656 | 2nd xcorr calculation iteration 31: 0.171120 657 | Comparing from frame 4384 to 20384 658 | 1st xcorr calculation iteration 32: 0.404804 659 | 2nd xcorr calculation iteration 32: 0.168283 660 | Comparing from frame 4521 to 20521 661 | 1st xcorr calculation iteration 33: 0.409343 662 | 2nd xcorr calculation iteration 33: 0.171845 663 | Comparing from frame 4658 to 20658 664 | 1st xcorr calculation iteration 34: 0.407616 665 | 2nd xcorr calculation iteration 34: 0.168078 666 | Comparing from frame 4795 to 20795 667 | 1st xcorr calculation iteration 35: 0.416329 668 | 2nd xcorr calculation iteration 35: 0.175520 669 | Comparing from frame 4932 to 20932 670 | 1st xcorr calculation iteration 36: 0.414894 671 | 2nd xcorr calculation iteration 36: 0.173691 672 | Comparing from frame 5069 to 21069 673 | 1st xcorr calculation iteration 37: 0.417643 674 | 2nd xcorr calculation iteration 37: 0.176045 675 | Comparing from frame 5206 to 21206 676 | 1st xcorr calculation iteration 38: 0.417757 677 | 2nd xcorr calculation iteration 38: 0.176383 678 | Comparing from frame 5343 to 21343 679 | 1st xcorr calculation iteration 39: 0.416289 680 | 2nd xcorr calculation iteration 39: 0.174310 681 | Comparing from frame 5480 to 21480 682 | 1st xcorr calculation iteration 40: 0.417371 683 | 2nd xcorr calculation iteration 40: 0.174974 684 | Comparing from frame 5617 to 21617 685 | 1st xcorr calculation iteration 41: 0.423439 686 | 2nd xcorr calculation iteration 41: 0.179391 687 | Comparing from frame 5754 to 21754 688 | 1st xcorr calculation iteration 42: 0.424479 689 | 2nd xcorr calculation iteration 42: 0.179103 690 | Comparing from frame 5891 to 21891 691 | 1st xcorr calculation iteration 43: 0.422964 692 | 2nd xcorr calculation iteration 43: 0.176848 693 | Comparing from frame 6028 to 22028 694 | 1st xcorr calculation iteration 44: 0.427069 695 | 2nd xcorr calculation iteration 44: 0.180314 696 | Comparing from frame 6165 to 22165 697 | 1st xcorr calculation iteration 45: 0.424048 698 | 2nd xcorr calculation iteration 45: 0.176997 699 | Comparing from frame 6302 to 22302 700 | 1st xcorr calculation iteration 46: 0.426255 701 | 2nd xcorr calculation iteration 46: 0.179365 702 | Comparing from frame 6439 to 22439 703 | 1st xcorr calculation iteration 47: 0.427831 704 | 2nd xcorr calculation iteration 47: 0.181449 705 | Comparing from frame 6576 to 22576 706 | 1st xcorr calculation iteration 48: 0.422687 707 | 2nd xcorr calculation iteration 48: 0.177428 708 | Comparing from frame 6713 to 22713 709 | 1st xcorr calculation iteration 49: 0.418734 710 | 2nd xcorr calculation iteration 49: 0.175334 711 | Comparing from frame 6850 to 22850 712 | 1st xcorr calculation iteration 50: 0.426898 713 | 2nd xcorr calculation iteration 50: 0.184442 714 | Comparing from frame 6987 to 22987 715 | 1st xcorr calculation iteration 51: 0.422467 716 | 2nd xcorr calculation iteration 51: 0.181805 717 | Comparing from frame 7124 to 23124 718 | 1st xcorr calculation iteration 52: 0.405489 719 | 2nd xcorr calculation iteration 52: 0.165922 720 | Comparing from frame 7261 to 23261 721 | 1st xcorr calculation iteration 53: 0.425871 722 | 2nd xcorr calculation iteration 53: 0.187272 723 | Comparing from frame 7398 to 23398 724 | 1st xcorr calculation iteration 54: 0.417705 725 | 2nd xcorr calculation iteration 54: 0.180652 726 | Comparing from frame 7535 to 23535 727 | 1st xcorr calculation iteration 55: 0.418696 728 | 2nd xcorr calculation iteration 55: 0.184510 729 | Comparing from frame 7672 to 23672 730 | 1st xcorr calculation iteration 56: 0.415454 731 | 2nd xcorr calculation iteration 56: 0.183836 732 | Comparing from frame 7809 to 23809 733 | 1st xcorr calculation iteration 57: 0.406667 734 | 2nd xcorr calculation iteration 57: 0.176901 735 | Comparing from frame 7946 to 23946 736 | 1st xcorr calculation iteration 58: 0.414417 737 | 2nd xcorr calculation iteration 58: 0.186982 738 | Comparing from frame 8083 to 24083 739 | 1st xcorr calculation iteration 59: 0.413391 740 | 2nd xcorr calculation iteration 59: 0.186877 741 | Comparing from frame 8220 to 24220 742 | 1st xcorr calculation iteration 60: 0.397853 743 | 2nd xcorr calculation iteration 60: 0.172712 744 | Comparing from frame 8357 to 24357 745 | 1st xcorr calculation iteration 61: 0.407475 746 | 2nd xcorr calculation iteration 61: 0.184325 747 | Comparing from frame 8494 to 24494 748 | 1st xcorr calculation iteration 62: 0.414307 749 | 2nd xcorr calculation iteration 62: 0.192200 750 | Comparing from frame 8631 to 24631 751 | 1st xcorr calculation iteration 63: 0.412186 752 | 2nd xcorr calculation iteration 63: 0.192676 753 | Comparing from frame 8768 to 24768 754 | 1st xcorr calculation iteration 64: 0.408094 755 | 2nd xcorr calculation iteration 64: 0.189666 756 | Comparing from frame 8905 to 24905 757 | 1st xcorr calculation iteration 65: 0.403283 758 | 2nd xcorr calculation iteration 65: 0.186030 759 | Comparing from frame 9042 to 25042 760 | 1st xcorr calculation iteration 66: 0.408445 761 | 2nd xcorr calculation iteration 66: 0.192422 762 | Comparing from frame 9179 to 25179 763 | 1st xcorr calculation iteration 67: 0.406135 764 | 2nd xcorr calculation iteration 67: 0.191681 765 | Comparing from frame 9316 to 25316 766 | 1st xcorr calculation iteration 68: 0.400673 767 | 2nd xcorr calculation iteration 68: 0.187260 768 | Comparing from frame 9453 to 25453 769 | 1st xcorr calculation iteration 69: 0.408498 770 | 2nd xcorr calculation iteration 69: 0.194596 771 | Comparing from frame 9590 to 25590 772 | 1st xcorr calculation iteration 70: 0.405707 773 | 2nd xcorr calculation iteration 70: 0.194309 774 | Comparing from frame 9727 to 25727 775 | 1st xcorr calculation iteration 71: 0.393790 776 | 2nd xcorr calculation iteration 71: 0.186333 777 | Comparing from frame 9864 to 25864 778 | 1st xcorr calculation iteration 72: 0.397486 779 | 2nd xcorr calculation iteration 72: 0.191376 780 | Comparing from frame 10001 to 26001 781 | 1st xcorr calculation iteration 73: 0.396965 782 | 2nd xcorr calculation iteration 73: 0.193839 783 | Comparing from frame 10138 to 26138 784 | 1st xcorr calculation iteration 74: 0.396730 785 | 2nd xcorr calculation iteration 74: 0.194485 786 | Comparing from frame 10275 to 26275 787 | 1st xcorr calculation iteration 75: 0.376675 788 | 2nd xcorr calculation iteration 75: 0.176815 789 | Comparing from frame 10412 to 26412 790 | 1st xcorr calculation iteration 76: 0.388453 791 | 2nd xcorr calculation iteration 76: 0.190568 792 | Comparing from frame 10549 to 26549 793 | 1st xcorr calculation iteration 77: 0.388481 794 | 2nd xcorr calculation iteration 77: 0.191033 795 | Comparing from frame 10686 to 26686 796 | 1st xcorr calculation iteration 78: 0.389187 797 | 2nd xcorr calculation iteration 78: 0.192297 798 | Comparing from frame 10823 to 26823 799 | 1st xcorr calculation iteration 79: 0.383536 800 | 2nd xcorr calculation iteration 79: 0.188188 801 | Comparing from frame 10960 to 26960 802 | 1st xcorr calculation iteration 80: 0.381120 803 | 2nd xcorr calculation iteration 80: 0.186515 804 | Comparing from frame 11097 to 27097 805 | 1st xcorr calculation iteration 81: 0.371642 806 | 2nd xcorr calculation iteration 81: 0.178994 807 | Comparing from frame 11234 to 27234 808 | 1st xcorr calculation iteration 82: 0.374831 809 | 2nd xcorr calculation iteration 82: 0.183947 810 | Comparing from frame 11371 to 27371 811 | 1st xcorr calculation iteration 83: 0.369098 812 | 2nd xcorr calculation iteration 83: 0.179474 813 | amount_computed_pieces: 200 814 | numNbest: 2 815 | average_xcorr before divided: 47.173084 816 | Average xcorr final: 0.117933 817 | Computing the average xcorr between 0 and 3 818 | the xcorr_values between 0 and 3 is 0.117933 819 | frames: 27833 820 | Amount of scroll: 137 821 | Comparing from frame 137 to 16137 822 | 1st xcorr calculation iteration 1: 0.147343 823 | 2nd xcorr calculation iteration 1: 0.136663 824 | Comparing from frame 274 to 16274 825 | 1st xcorr calculation iteration 2: 0.135069 826 | 2nd xcorr calculation iteration 2: 0.124515 827 | Comparing from frame 411 to 16411 828 | 1st xcorr calculation iteration 3: 0.137441 829 | 2nd xcorr calculation iteration 3: 0.125502 830 | Comparing from frame 548 to 16548 831 | 1st xcorr calculation iteration 4: 0.136558 832 | 2nd xcorr calculation iteration 4: 0.123560 833 | Comparing from frame 685 to 16685 834 | 1st xcorr calculation iteration 5: 0.143329 835 | 2nd xcorr calculation iteration 5: 0.125838 836 | Comparing from frame 822 to 16822 837 | 1st xcorr calculation iteration 6: 0.147754 838 | 2nd xcorr calculation iteration 6: 0.128471 839 | Comparing from frame 959 to 16959 840 | 1st xcorr calculation iteration 7: 0.151647 841 | 2nd xcorr calculation iteration 7: 0.130794 842 | Comparing from frame 1096 to 17096 843 | 1st xcorr calculation iteration 8: 0.136900 844 | 2nd xcorr calculation iteration 8: 0.124319 845 | Comparing from frame 1233 to 17233 846 | 1st xcorr calculation iteration 9: 0.152286 847 | 2nd xcorr calculation iteration 9: 0.125381 848 | Comparing from frame 1370 to 17370 849 | 1st xcorr calculation iteration 10: 0.149338 850 | 2nd xcorr calculation iteration 10: 0.118576 851 | Comparing from frame 1507 to 17507 852 | 1st xcorr calculation iteration 11: 0.152254 853 | 2nd xcorr calculation iteration 11: 0.119216 854 | Comparing from frame 1644 to 17644 855 | 1st xcorr calculation iteration 12: 0.153426 856 | 2nd xcorr calculation iteration 12: 0.117017 857 | Comparing from frame 1781 to 17781 858 | 1st xcorr calculation iteration 13: 0.159185 859 | 2nd xcorr calculation iteration 13: 0.120068 860 | Comparing from frame 1918 to 17918 861 | 1st xcorr calculation iteration 14: 0.166663 862 | 2nd xcorr calculation iteration 14: 0.123610 863 | Comparing from frame 2055 to 18055 864 | 1st xcorr calculation iteration 15: 0.172362 865 | 2nd xcorr calculation iteration 15: 0.126428 866 | Comparing from frame 2192 to 18192 867 | 1st xcorr calculation iteration 16: 0.167808 868 | 2nd xcorr calculation iteration 16: 0.115869 869 | Comparing from frame 2329 to 18329 870 | 1st xcorr calculation iteration 17: 0.167441 871 | 2nd xcorr calculation iteration 17: 0.112251 872 | Comparing from frame 2466 to 18466 873 | 1st xcorr calculation iteration 18: 0.178472 874 | 2nd xcorr calculation iteration 18: 0.123934 875 | Comparing from frame 2603 to 18603 876 | 1st xcorr calculation iteration 19: 0.177099 877 | 2nd xcorr calculation iteration 19: 0.121714 878 | Comparing from frame 2740 to 18740 879 | 1st xcorr calculation iteration 20: 0.181910 880 | 2nd xcorr calculation iteration 20: 0.125039 881 | Comparing from frame 2877 to 18877 882 | 1st xcorr calculation iteration 21: 0.186857 883 | 2nd xcorr calculation iteration 21: 0.129838 884 | Comparing from frame 3014 to 19014 885 | 1st xcorr calculation iteration 22: 0.186968 886 | 2nd xcorr calculation iteration 22: 0.129802 887 | Comparing from frame 3151 to 19151 888 | 1st xcorr calculation iteration 23: 0.195033 889 | 2nd xcorr calculation iteration 23: 0.139027 890 | Comparing from frame 3288 to 19288 891 | 1st xcorr calculation iteration 24: 0.193894 892 | 2nd xcorr calculation iteration 24: 0.135630 893 | Comparing from frame 3425 to 19425 894 | 1st xcorr calculation iteration 25: 0.199582 895 | 2nd xcorr calculation iteration 25: 0.140162 896 | Comparing from frame 3562 to 19562 897 | 1st xcorr calculation iteration 26: 0.202844 898 | 2nd xcorr calculation iteration 26: 0.142323 899 | Comparing from frame 3699 to 19699 900 | 1st xcorr calculation iteration 27: 0.206647 901 | 2nd xcorr calculation iteration 27: 0.144805 902 | Comparing from frame 3836 to 19836 903 | 1st xcorr calculation iteration 28: 0.208857 904 | 2nd xcorr calculation iteration 28: 0.144474 905 | Comparing from frame 3973 to 19973 906 | 1st xcorr calculation iteration 29: 0.211164 907 | 2nd xcorr calculation iteration 29: 0.144159 908 | Comparing from frame 4110 to 20110 909 | 1st xcorr calculation iteration 30: 0.212578 910 | 2nd xcorr calculation iteration 30: 0.142834 911 | Comparing from frame 4247 to 20247 912 | 1st xcorr calculation iteration 31: 0.214064 913 | 2nd xcorr calculation iteration 31: 0.142872 914 | Comparing from frame 4384 to 20384 915 | 1st xcorr calculation iteration 32: 0.215039 916 | 2nd xcorr calculation iteration 32: 0.141568 917 | Comparing from frame 4521 to 20521 918 | 1st xcorr calculation iteration 33: 0.216792 919 | 2nd xcorr calculation iteration 33: 0.142295 920 | Comparing from frame 4658 to 20658 921 | 1st xcorr calculation iteration 34: 0.217855 922 | 2nd xcorr calculation iteration 34: 0.143232 923 | Comparing from frame 4795 to 20795 924 | 1st xcorr calculation iteration 35: 0.225068 925 | 2nd xcorr calculation iteration 35: 0.150900 926 | Comparing from frame 4932 to 20932 927 | 1st xcorr calculation iteration 36: 0.226183 928 | 2nd xcorr calculation iteration 36: 0.150609 929 | Comparing from frame 5069 to 21069 930 | 1st xcorr calculation iteration 37: 0.229313 931 | 2nd xcorr calculation iteration 37: 0.152045 932 | Comparing from frame 5206 to 21206 933 | 1st xcorr calculation iteration 38: 0.228084 934 | 2nd xcorr calculation iteration 38: 0.149318 935 | Comparing from frame 5343 to 21343 936 | 1st xcorr calculation iteration 39: 0.228943 937 | 2nd xcorr calculation iteration 39: 0.148850 938 | Comparing from frame 5480 to 21480 939 | 1st xcorr calculation iteration 40: 0.227710 940 | 2nd xcorr calculation iteration 40: 0.146353 941 | Comparing from frame 5617 to 21617 942 | 1st xcorr calculation iteration 41: 0.236780 943 | 2nd xcorr calculation iteration 41: 0.155845 944 | Comparing from frame 5754 to 21754 945 | 1st xcorr calculation iteration 42: 0.237714 946 | 2nd xcorr calculation iteration 42: 0.158858 947 | Comparing from frame 5891 to 21891 948 | 1st xcorr calculation iteration 43: 0.235925 949 | 2nd xcorr calculation iteration 43: 0.154494 950 | Comparing from frame 6028 to 22028 951 | 1st xcorr calculation iteration 44: 0.240539 952 | 2nd xcorr calculation iteration 44: 0.159400 953 | Comparing from frame 6165 to 22165 954 | 1st xcorr calculation iteration 45: 0.238938 955 | 2nd xcorr calculation iteration 45: 0.157206 956 | Comparing from frame 6302 to 22302 957 | 1st xcorr calculation iteration 46: 0.241542 958 | 2nd xcorr calculation iteration 46: 0.159741 959 | Comparing from frame 6439 to 22439 960 | 1st xcorr calculation iteration 47: 0.241720 961 | 2nd xcorr calculation iteration 47: 0.160495 962 | Comparing from frame 6576 to 22576 963 | 1st xcorr calculation iteration 48: 0.240163 964 | 2nd xcorr calculation iteration 48: 0.158664 965 | Comparing from frame 6713 to 22713 966 | 1st xcorr calculation iteration 49: 0.236950 967 | 2nd xcorr calculation iteration 49: 0.154286 968 | Comparing from frame 6850 to 22850 969 | 1st xcorr calculation iteration 50: 0.242306 970 | 2nd xcorr calculation iteration 50: 0.161172 971 | Comparing from frame 6987 to 22987 972 | 1st xcorr calculation iteration 51: 0.227084 973 | 2nd xcorr calculation iteration 51: 0.161176 974 | Comparing from frame 7124 to 23124 975 | 1st xcorr calculation iteration 52: 0.231554 976 | 2nd xcorr calculation iteration 52: 0.157583 977 | Comparing from frame 7261 to 23261 978 | 1st xcorr calculation iteration 53: 0.244549 979 | 2nd xcorr calculation iteration 53: 0.162448 980 | Comparing from frame 7398 to 23398 981 | 1st xcorr calculation iteration 54: 0.238316 982 | 2nd xcorr calculation iteration 54: 0.154135 983 | Comparing from frame 7535 to 23535 984 | 1st xcorr calculation iteration 55: 0.241137 985 | 2nd xcorr calculation iteration 55: 0.156923 986 | Comparing from frame 7672 to 23672 987 | 1st xcorr calculation iteration 56: 0.237793 988 | 2nd xcorr calculation iteration 56: 0.154983 989 | Comparing from frame 7809 to 23809 990 | 1st xcorr calculation iteration 57: 0.228904 991 | 2nd xcorr calculation iteration 57: 0.159850 992 | Comparing from frame 7946 to 23946 993 | 1st xcorr calculation iteration 58: 0.237722 994 | 2nd xcorr calculation iteration 58: 0.154462 995 | Comparing from frame 8083 to 24083 996 | 1st xcorr calculation iteration 59: 0.224179 997 | 2nd xcorr calculation iteration 59: 0.163066 998 | Comparing from frame 8220 to 24220 999 | 1st xcorr calculation iteration 60: 0.233325 1000 | 2nd xcorr calculation iteration 60: 0.151653 1001 | Comparing from frame 8357 to 24357 1002 | 1st xcorr calculation iteration 61: 0.219094 1003 | 2nd xcorr calculation iteration 61: 0.165484 1004 | Comparing from frame 8494 to 24494 1005 | 1st xcorr calculation iteration 62: 0.215186 1006 | 2nd xcorr calculation iteration 62: 0.168774 1007 | Comparing from frame 8631 to 24631 1008 | 1st xcorr calculation iteration 63: 0.232491 1009 | 2nd xcorr calculation iteration 63: 0.151052 1010 | Comparing from frame 8768 to 24768 1011 | 1st xcorr calculation iteration 64: 0.229824 1012 | 2nd xcorr calculation iteration 64: 0.151834 1013 | Comparing from frame 8905 to 24905 1014 | 1st xcorr calculation iteration 65: 0.227415 1015 | 2nd xcorr calculation iteration 65: 0.153410 1016 | Comparing from frame 9042 to 25042 1017 | 1st xcorr calculation iteration 66: 0.232216 1018 | 2nd xcorr calculation iteration 66: 0.149773 1019 | Comparing from frame 9179 to 25179 1020 | 1st xcorr calculation iteration 67: 0.226860 1021 | 2nd xcorr calculation iteration 67: 0.150754 1022 | Comparing from frame 9316 to 25316 1023 | 1st xcorr calculation iteration 68: 0.226867 1024 | 2nd xcorr calculation iteration 68: 0.149010 1025 | Comparing from frame 9453 to 25453 1026 | 1st xcorr calculation iteration 69: 0.228313 1027 | 2nd xcorr calculation iteration 69: 0.152030 1028 | Comparing from frame 9590 to 25590 1029 | 1st xcorr calculation iteration 70: 0.203542 1030 | 2nd xcorr calculation iteration 70: 0.167712 1031 | Comparing from frame 9727 to 25727 1032 | 1st xcorr calculation iteration 71: 0.211931 1033 | 2nd xcorr calculation iteration 71: 0.154340 1034 | Comparing from frame 9864 to 25864 1035 | 1st xcorr calculation iteration 72: 0.216682 1036 | 2nd xcorr calculation iteration 72: 0.150239 1037 | Comparing from frame 10001 to 26001 1038 | 1st xcorr calculation iteration 73: 0.202615 1039 | 2nd xcorr calculation iteration 73: 0.160947 1040 | Comparing from frame 10138 to 26138 1041 | 1st xcorr calculation iteration 74: 0.213748 1042 | 2nd xcorr calculation iteration 74: 0.146176 1043 | Comparing from frame 10275 to 26275 1044 | 1st xcorr calculation iteration 75: 0.206927 1045 | 2nd xcorr calculation iteration 75: 0.154552 1046 | Comparing from frame 10412 to 26412 1047 | 1st xcorr calculation iteration 76: 0.213787 1048 | 2nd xcorr calculation iteration 76: 0.146051 1049 | Comparing from frame 10549 to 26549 1050 | 1st xcorr calculation iteration 77: 0.211266 1051 | 2nd xcorr calculation iteration 77: 0.144841 1052 | Comparing from frame 10686 to 26686 1053 | 1st xcorr calculation iteration 78: 0.212601 1054 | 2nd xcorr calculation iteration 78: 0.139679 1055 | Comparing from frame 10823 to 26823 1056 | 1st xcorr calculation iteration 79: 0.208852 1057 | 2nd xcorr calculation iteration 79: 0.141929 1058 | Comparing from frame 10960 to 26960 1059 | 1st xcorr calculation iteration 80: 0.204407 1060 | 2nd xcorr calculation iteration 80: 0.142340 1061 | Comparing from frame 11097 to 27097 1062 | 1st xcorr calculation iteration 81: 0.195563 1063 | 2nd xcorr calculation iteration 81: 0.150957 1064 | Comparing from frame 11234 to 27234 1065 | 1st xcorr calculation iteration 82: 0.202035 1066 | 2nd xcorr calculation iteration 82: 0.139875 1067 | Comparing from frame 11371 to 27371 1068 | 1st xcorr calculation iteration 83: 0.194444 1069 | 2nd xcorr calculation iteration 83: 0.144757 1070 | amount_computed_pieces: 200 1071 | numNbest: 2 1072 | average_xcorr before divided: 28.984385 1073 | Average xcorr final: 0.072461 1074 | Computing the average xcorr between 0 and 4 1075 | the xcorr_values between 0 and 4 is 0.072461 1076 | frames: 27833 1077 | Amount of scroll: 137 1078 | Comparing from frame 137 to 16137 1079 | 1st xcorr calculation iteration 1: 0.283754 1080 | 2nd xcorr calculation iteration 1: 0.215175 1081 | Comparing from frame 274 to 16274 1082 | 1st xcorr calculation iteration 2: 0.292200 1083 | 2nd xcorr calculation iteration 2: 0.225506 1084 | Comparing from frame 411 to 16411 1085 | 1st xcorr calculation iteration 3: 0.271036 1086 | 2nd xcorr calculation iteration 3: 0.200074 1087 | Comparing from frame 548 to 16548 1088 | 1st xcorr calculation iteration 4: 0.284556 1089 | 2nd xcorr calculation iteration 4: 0.212840 1090 | Comparing from frame 685 to 16685 1091 | 1st xcorr calculation iteration 5: 0.290143 1092 | 2nd xcorr calculation iteration 5: 0.216808 1093 | Comparing from frame 822 to 16822 1094 | 1st xcorr calculation iteration 6: 0.292590 1095 | 2nd xcorr calculation iteration 6: 0.217705 1096 | Comparing from frame 959 to 16959 1097 | 1st xcorr calculation iteration 7: 0.296900 1098 | 2nd xcorr calculation iteration 7: 0.220920 1099 | Comparing from frame 1096 to 17096 1100 | 1st xcorr calculation iteration 8: 0.303861 1101 | 2nd xcorr calculation iteration 8: 0.225430 1102 | Comparing from frame 1233 to 17233 1103 | 1st xcorr calculation iteration 9: 0.304534 1104 | 2nd xcorr calculation iteration 9: 0.224027 1105 | Comparing from frame 1370 to 17370 1106 | 1st xcorr calculation iteration 10: 0.302183 1107 | 2nd xcorr calculation iteration 10: 0.219396 1108 | Comparing from frame 1507 to 17507 1109 | 1st xcorr calculation iteration 11: 0.312072 1110 | 2nd xcorr calculation iteration 11: 0.226592 1111 | Comparing from frame 1644 to 17644 1112 | 1st xcorr calculation iteration 12: 0.302992 1113 | 2nd xcorr calculation iteration 12: 0.215504 1114 | Comparing from frame 1781 to 17781 1115 | 1st xcorr calculation iteration 13: 0.310996 1116 | 2nd xcorr calculation iteration 13: 0.222069 1117 | Comparing from frame 1918 to 17918 1118 | 1st xcorr calculation iteration 14: 0.308301 1119 | 2nd xcorr calculation iteration 14: 0.216125 1120 | Comparing from frame 2055 to 18055 1121 | 1st xcorr calculation iteration 15: 0.308693 1122 | 2nd xcorr calculation iteration 15: 0.213054 1123 | Comparing from frame 2192 to 18192 1124 | 1st xcorr calculation iteration 16: 0.317691 1125 | 2nd xcorr calculation iteration 16: 0.218993 1126 | Comparing from frame 2329 to 18329 1127 | 1st xcorr calculation iteration 17: 0.334661 1128 | 2nd xcorr calculation iteration 17: 0.233803 1129 | Comparing from frame 2466 to 18466 1130 | 1st xcorr calculation iteration 18: 0.319537 1131 | 2nd xcorr calculation iteration 18: 0.215992 1132 | Comparing from frame 2603 to 18603 1133 | 1st xcorr calculation iteration 19: 0.323528 1134 | 2nd xcorr calculation iteration 19: 0.217525 1135 | Comparing from frame 2740 to 18740 1136 | 1st xcorr calculation iteration 20: 0.325221 1137 | 2nd xcorr calculation iteration 20: 0.216510 1138 | Comparing from frame 2877 to 18877 1139 | 1st xcorr calculation iteration 21: 0.326839 1140 | 2nd xcorr calculation iteration 21: 0.215466 1141 | Comparing from frame 3014 to 19014 1142 | 1st xcorr calculation iteration 22: 0.332478 1143 | 2nd xcorr calculation iteration 22: 0.218946 1144 | Comparing from frame 3151 to 19151 1145 | 1st xcorr calculation iteration 23: 0.331606 1146 | 2nd xcorr calculation iteration 23: 0.213486 1147 | Comparing from frame 3288 to 19288 1148 | 1st xcorr calculation iteration 24: 0.329787 1149 | 2nd xcorr calculation iteration 24: 0.209015 1150 | Comparing from frame 3425 to 19425 1151 | 1st xcorr calculation iteration 25: 0.336927 1152 | 2nd xcorr calculation iteration 25: 0.212950 1153 | Comparing from frame 3562 to 19562 1154 | 1st xcorr calculation iteration 26: 0.329840 1155 | 2nd xcorr calculation iteration 26: 0.203019 1156 | Comparing from frame 3699 to 19699 1157 | 1st xcorr calculation iteration 27: 0.340219 1158 | 2nd xcorr calculation iteration 27: 0.210958 1159 | Comparing from frame 3836 to 19836 1160 | 1st xcorr calculation iteration 28: 0.347504 1161 | 2nd xcorr calculation iteration 28: 0.215564 1162 | Comparing from frame 3973 to 19973 1163 | 1st xcorr calculation iteration 29: 0.339641 1164 | 2nd xcorr calculation iteration 29: 0.206210 1165 | Comparing from frame 4110 to 20110 1166 | 1st xcorr calculation iteration 30: 0.343187 1167 | 2nd xcorr calculation iteration 30: 0.208253 1168 | Comparing from frame 4247 to 20247 1169 | 1st xcorr calculation iteration 31: 0.352909 1170 | 2nd xcorr calculation iteration 31: 0.215993 1171 | Comparing from frame 4384 to 20384 1172 | 1st xcorr calculation iteration 32: 0.355801 1173 | 2nd xcorr calculation iteration 32: 0.216717 1174 | Comparing from frame 4521 to 20521 1175 | 1st xcorr calculation iteration 33: 0.354694 1176 | 2nd xcorr calculation iteration 33: 0.212709 1177 | Comparing from frame 4658 to 20658 1178 | 1st xcorr calculation iteration 34: 0.355266 1179 | 2nd xcorr calculation iteration 34: 0.211136 1180 | Comparing from frame 4795 to 20795 1181 | 1st xcorr calculation iteration 35: 0.350793 1182 | 2nd xcorr calculation iteration 35: 0.204174 1183 | Comparing from frame 4932 to 20932 1184 | 1st xcorr calculation iteration 36: 0.358240 1185 | 2nd xcorr calculation iteration 36: 0.209376 1186 | Comparing from frame 5069 to 21069 1187 | 1st xcorr calculation iteration 37: 0.356604 1188 | 2nd xcorr calculation iteration 37: 0.206264 1189 | Comparing from frame 5206 to 21206 1190 | 1st xcorr calculation iteration 38: 0.358404 1191 | 2nd xcorr calculation iteration 38: 0.205801 1192 | Comparing from frame 5343 to 21343 1193 | 1st xcorr calculation iteration 39: 0.367391 1194 | 2nd xcorr calculation iteration 39: 0.213347 1195 | Comparing from frame 5480 to 21480 1196 | 1st xcorr calculation iteration 40: 0.366989 1197 | 2nd xcorr calculation iteration 40: 0.212781 1198 | Comparing from frame 5617 to 21617 1199 | 1st xcorr calculation iteration 41: 0.366583 1200 | 2nd xcorr calculation iteration 41: 0.211357 1201 | Comparing from frame 5754 to 21754 1202 | 1st xcorr calculation iteration 42: 0.365584 1203 | 2nd xcorr calculation iteration 42: 0.210096 1204 | Comparing from frame 5891 to 21891 1205 | 1st xcorr calculation iteration 43: 0.370496 1206 | 2nd xcorr calculation iteration 43: 0.215421 1207 | Comparing from frame 6028 to 22028 1208 | 1st xcorr calculation iteration 44: 0.365142 1209 | 2nd xcorr calculation iteration 44: 0.210527 1210 | Comparing from frame 6165 to 22165 1211 | 1st xcorr calculation iteration 45: 0.368144 1212 | 2nd xcorr calculation iteration 45: 0.214151 1213 | Comparing from frame 6302 to 22302 1214 | 1st xcorr calculation iteration 46: 0.365615 1215 | 2nd xcorr calculation iteration 46: 0.211563 1216 | Comparing from frame 6439 to 22439 1217 | 1st xcorr calculation iteration 47: 0.366909 1218 | 2nd xcorr calculation iteration 47: 0.212345 1219 | Comparing from frame 6576 to 22576 1220 | 1st xcorr calculation iteration 48: 0.375390 1221 | 2nd xcorr calculation iteration 48: 0.220424 1222 | Comparing from frame 6713 to 22713 1223 | 1st xcorr calculation iteration 49: 0.375814 1224 | 2nd xcorr calculation iteration 49: 0.219520 1225 | Comparing from frame 6850 to 22850 1226 | 1st xcorr calculation iteration 50: 0.370328 1227 | 2nd xcorr calculation iteration 50: 0.213574 1228 | Comparing from frame 6987 to 22987 1229 | 1st xcorr calculation iteration 51: 0.380982 1230 | 2nd xcorr calculation iteration 51: 0.224112 1231 | Comparing from frame 7124 to 23124 1232 | 1st xcorr calculation iteration 52: 0.387398 1233 | 2nd xcorr calculation iteration 52: 0.229973 1234 | Comparing from frame 7261 to 23261 1235 | 1st xcorr calculation iteration 53: 0.370412 1236 | 2nd xcorr calculation iteration 53: 0.213131 1237 | Comparing from frame 7398 to 23398 1238 | 1st xcorr calculation iteration 54: 0.376261 1239 | 2nd xcorr calculation iteration 54: 0.219994 1240 | Comparing from frame 7535 to 23535 1241 | 1st xcorr calculation iteration 55: 0.380599 1242 | 2nd xcorr calculation iteration 55: 0.225180 1243 | Comparing from frame 7672 to 23672 1244 | 1st xcorr calculation iteration 56: 0.371021 1245 | 2nd xcorr calculation iteration 56: 0.215885 1246 | Comparing from frame 7809 to 23809 1247 | 1st xcorr calculation iteration 57: 0.386837 1248 | 2nd xcorr calculation iteration 57: 0.233389 1249 | Comparing from frame 7946 to 23946 1250 | 1st xcorr calculation iteration 58: 0.376615 1251 | 2nd xcorr calculation iteration 58: 0.222841 1252 | Comparing from frame 8083 to 24083 1253 | 1st xcorr calculation iteration 59: 0.383730 1254 | 2nd xcorr calculation iteration 59: 0.230711 1255 | Comparing from frame 8220 to 24220 1256 | 1st xcorr calculation iteration 60: 0.382992 1257 | 2nd xcorr calculation iteration 60: 0.229881 1258 | Comparing from frame 8357 to 24357 1259 | 1st xcorr calculation iteration 61: 0.381055 1260 | 2nd xcorr calculation iteration 61: 0.226931 1261 | Comparing from frame 8494 to 24494 1262 | 1st xcorr calculation iteration 62: 0.372688 1263 | 2nd xcorr calculation iteration 62: 0.218533 1264 | Comparing from frame 8631 to 24631 1265 | 1st xcorr calculation iteration 63: 0.378550 1266 | 2nd xcorr calculation iteration 63: 0.223874 1267 | Comparing from frame 8768 to 24768 1268 | 1st xcorr calculation iteration 64: 0.374103 1269 | 2nd xcorr calculation iteration 64: 0.220561 1270 | Comparing from frame 8905 to 24905 1271 | 1st xcorr calculation iteration 65: 0.388871 1272 | 2nd xcorr calculation iteration 65: 0.236363 1273 | Comparing from frame 9042 to 25042 1274 | 1st xcorr calculation iteration 66: 0.381760 1275 | 2nd xcorr calculation iteration 66: 0.229938 1276 | Comparing from frame 9179 to 25179 1277 | 1st xcorr calculation iteration 67: 0.371531 1278 | 2nd xcorr calculation iteration 67: 0.220842 1279 | Comparing from frame 9316 to 25316 1280 | 1st xcorr calculation iteration 68: 0.369772 1281 | 2nd xcorr calculation iteration 68: 0.220034 1282 | Comparing from frame 9453 to 25453 1283 | 1st xcorr calculation iteration 69: 0.387928 1284 | 2nd xcorr calculation iteration 69: 0.239502 1285 | Comparing from frame 9590 to 25590 1286 | 1st xcorr calculation iteration 70: 0.377044 1287 | 2nd xcorr calculation iteration 70: 0.228925 1288 | Comparing from frame 9727 to 25727 1289 | 1st xcorr calculation iteration 71: 0.387592 1290 | 2nd xcorr calculation iteration 71: 0.238256 1291 | Comparing from frame 9864 to 25864 1292 | 1st xcorr calculation iteration 72: 0.363650 1293 | 2nd xcorr calculation iteration 72: 0.217267 1294 | Comparing from frame 10001 to 26001 1295 | 1st xcorr calculation iteration 73: 0.360101 1296 | 2nd xcorr calculation iteration 73: 0.213230 1297 | Comparing from frame 10138 to 26138 1298 | 1st xcorr calculation iteration 74: 0.372386 1299 | 2nd xcorr calculation iteration 74: 0.228018 1300 | Comparing from frame 10275 to 26275 1301 | 1st xcorr calculation iteration 75: 0.361512 1302 | 2nd xcorr calculation iteration 75: 0.217795 1303 | Comparing from frame 10412 to 26412 1304 | 1st xcorr calculation iteration 76: 0.370718 1305 | 2nd xcorr calculation iteration 76: 0.228726 1306 | Comparing from frame 10549 to 26549 1307 | 1st xcorr calculation iteration 77: 0.362116 1308 | 2nd xcorr calculation iteration 77: 0.221256 1309 | Comparing from frame 10686 to 26686 1310 | 1st xcorr calculation iteration 78: 0.354532 1311 | 2nd xcorr calculation iteration 78: 0.215159 1312 | Comparing from frame 10823 to 26823 1313 | 1st xcorr calculation iteration 79: 0.353312 1314 | 2nd xcorr calculation iteration 79: 0.215492 1315 | Comparing from frame 10960 to 26960 1316 | 1st xcorr calculation iteration 80: 0.346333 1317 | 2nd xcorr calculation iteration 80: 0.209888 1318 | Comparing from frame 11097 to 27097 1319 | 1st xcorr calculation iteration 81: 0.355401 1320 | 2nd xcorr calculation iteration 81: 0.220352 1321 | Comparing from frame 11234 to 27234 1322 | 1st xcorr calculation iteration 82: 0.346890 1323 | 2nd xcorr calculation iteration 82: 0.213820 1324 | Comparing from frame 11371 to 27371 1325 | 1st xcorr calculation iteration 83: 0.359479 1326 | 2nd xcorr calculation iteration 83: 0.227425 1327 | amount_computed_pieces: 200 1328 | numNbest: 2 1329 | average_xcorr before divided: 47.097225 1330 | Average xcorr final: 0.117743 1331 | Computing the average xcorr between 1 and 2 1332 | the xcorr_values between 1 and 2 is 0.117743 1333 | frames: 27833 1334 | Amount of scroll: 137 1335 | Comparing from frame 137 to 16137 1336 | 1st xcorr calculation iteration 1: 0.294203 1337 | 2nd xcorr calculation iteration 1: 0.133053 1338 | Comparing from frame 274 to 16274 1339 | 1st xcorr calculation iteration 2: 0.285845 1340 | 2nd xcorr calculation iteration 2: 0.121544 1341 | Comparing from frame 411 to 16411 1342 | 1st xcorr calculation iteration 3: 0.289390 1343 | 2nd xcorr calculation iteration 3: 0.122344 1344 | Comparing from frame 548 to 16548 1345 | 1st xcorr calculation iteration 4: 0.294526 1346 | 2nd xcorr calculation iteration 4: 0.121150 1347 | Comparing from frame 685 to 16685 1348 | 1st xcorr calculation iteration 5: 0.302888 1349 | 2nd xcorr calculation iteration 5: 0.126400 1350 | Comparing from frame 822 to 16822 1351 | 1st xcorr calculation iteration 6: 0.306654 1352 | 2nd xcorr calculation iteration 6: 0.127407 1353 | Comparing from frame 959 to 16959 1354 | 1st xcorr calculation iteration 7: 0.314381 1355 | 2nd xcorr calculation iteration 7: 0.133121 1356 | Comparing from frame 1096 to 17096 1357 | 1st xcorr calculation iteration 8: 0.314976 1358 | 2nd xcorr calculation iteration 8: 0.130082 1359 | Comparing from frame 1233 to 17233 1360 | 1st xcorr calculation iteration 9: 0.313739 1361 | 2nd xcorr calculation iteration 9: 0.125429 1362 | Comparing from frame 1370 to 17370 1363 | 1st xcorr calculation iteration 10: 0.310187 1364 | 2nd xcorr calculation iteration 10: 0.118998 1365 | Comparing from frame 1507 to 17507 1366 | 1st xcorr calculation iteration 11: 0.321285 1367 | 2nd xcorr calculation iteration 11: 0.126032 1368 | Comparing from frame 1644 to 17644 1369 | 1st xcorr calculation iteration 12: 0.316488 1370 | 2nd xcorr calculation iteration 12: 0.116816 1371 | Comparing from frame 1781 to 17781 1372 | 1st xcorr calculation iteration 13: 0.322262 1373 | 2nd xcorr calculation iteration 13: 0.119591 1374 | Comparing from frame 1918 to 17918 1375 | 1st xcorr calculation iteration 14: 0.322593 1376 | 2nd xcorr calculation iteration 14: 0.115309 1377 | Comparing from frame 2055 to 18055 1378 | 1st xcorr calculation iteration 15: 0.322763 1379 | 2nd xcorr calculation iteration 15: 0.110299 1380 | Comparing from frame 2192 to 18192 1381 | 1st xcorr calculation iteration 16: 0.332730 1382 | 2nd xcorr calculation iteration 16: 0.116870 1383 | Comparing from frame 2329 to 18329 1384 | 1st xcorr calculation iteration 17: 0.339905 1385 | 2nd xcorr calculation iteration 17: 0.120653 1386 | Comparing from frame 2466 to 18466 1387 | 1st xcorr calculation iteration 18: 0.336408 1388 | 2nd xcorr calculation iteration 18: 0.112987 1389 | Comparing from frame 2603 to 18603 1390 | 1st xcorr calculation iteration 19: 0.341803 1391 | 2nd xcorr calculation iteration 19: 0.114944 1392 | Comparing from frame 2740 to 18740 1393 | 1st xcorr calculation iteration 20: 0.342871 1394 | 2nd xcorr calculation iteration 20: 0.112262 1395 | Comparing from frame 2877 to 18877 1396 | 1st xcorr calculation iteration 21: 0.345489 1397 | 2nd xcorr calculation iteration 21: 0.111099 1398 | Comparing from frame 3014 to 19014 1399 | 1st xcorr calculation iteration 22: 0.349313 1400 | 2nd xcorr calculation iteration 22: 0.111669 1401 | Comparing from frame 3151 to 19151 1402 | 1st xcorr calculation iteration 23: 0.349223 1403 | 2nd xcorr calculation iteration 23: 0.108687 1404 | Comparing from frame 3288 to 19288 1405 | 1st xcorr calculation iteration 24: 0.349052 1406 | 2nd xcorr calculation iteration 24: 0.106206 1407 | Comparing from frame 3425 to 19425 1408 | 1st xcorr calculation iteration 25: 0.356547 1409 | 2nd xcorr calculation iteration 25: 0.110385 1410 | Comparing from frame 3562 to 19562 1411 | 1st xcorr calculation iteration 26: 0.352239 1412 | 2nd xcorr calculation iteration 26: 0.103900 1413 | Comparing from frame 3699 to 19699 1414 | 1st xcorr calculation iteration 27: 0.359441 1415 | 2nd xcorr calculation iteration 27: 0.108558 1416 | Comparing from frame 3836 to 19836 1417 | 1st xcorr calculation iteration 28: 0.367051 1418 | 2nd xcorr calculation iteration 28: 0.114224 1419 | Comparing from frame 3973 to 19973 1420 | 1st xcorr calculation iteration 29: 0.362589 1421 | 2nd xcorr calculation iteration 29: 0.107006 1422 | Comparing from frame 4110 to 20110 1423 | 1st xcorr calculation iteration 30: 0.366671 1424 | 2nd xcorr calculation iteration 30: 0.108680 1425 | Comparing from frame 4247 to 20247 1426 | 1st xcorr calculation iteration 31: 0.370663 1427 | 2nd xcorr calculation iteration 31: 0.110590 1428 | Comparing from frame 4384 to 20384 1429 | 1st xcorr calculation iteration 32: 0.374842 1430 | 2nd xcorr calculation iteration 32: 0.112410 1431 | Comparing from frame 4521 to 20521 1432 | 1st xcorr calculation iteration 33: 0.377618 1433 | 2nd xcorr calculation iteration 33: 0.113026 1434 | Comparing from frame 4658 to 20658 1435 | 1st xcorr calculation iteration 34: 0.378613 1436 | 2nd xcorr calculation iteration 34: 0.111799 1437 | Comparing from frame 4795 to 20795 1438 | 1st xcorr calculation iteration 35: 0.374448 1439 | 2nd xcorr calculation iteration 35: 0.105024 1440 | Comparing from frame 4932 to 20932 1441 | 1st xcorr calculation iteration 36: 0.381657 1442 | 2nd xcorr calculation iteration 36: 0.110923 1443 | Comparing from frame 5069 to 21069 1444 | 1st xcorr calculation iteration 37: 0.379144 1445 | 2nd xcorr calculation iteration 37: 0.106937 1446 | Comparing from frame 5206 to 21206 1447 | 1st xcorr calculation iteration 38: 0.382183 1448 | 2nd xcorr calculation iteration 38: 0.108644 1449 | Comparing from frame 5343 to 21343 1450 | 1st xcorr calculation iteration 39: 0.386800 1451 | 2nd xcorr calculation iteration 39: 0.112149 1452 | Comparing from frame 5480 to 21480 1453 | 1st xcorr calculation iteration 40: 0.387179 1454 | 2nd xcorr calculation iteration 40: 0.111630 1455 | Comparing from frame 5617 to 21617 1456 | 1st xcorr calculation iteration 41: 0.388307 1457 | 2nd xcorr calculation iteration 41: 0.111372 1458 | Comparing from frame 5754 to 21754 1459 | 1st xcorr calculation iteration 42: 0.384648 1460 | 2nd xcorr calculation iteration 42: 0.106757 1461 | Comparing from frame 5891 to 21891 1462 | 1st xcorr calculation iteration 43: 0.388592 1463 | 2nd xcorr calculation iteration 43: 0.109738 1464 | Comparing from frame 6028 to 22028 1465 | 1st xcorr calculation iteration 44: 0.388421 1466 | 2nd xcorr calculation iteration 44: 0.107823 1467 | Comparing from frame 6165 to 22165 1468 | 1st xcorr calculation iteration 45: 0.391497 1469 | 2nd xcorr calculation iteration 45: 0.110164 1470 | Comparing from frame 6302 to 22302 1471 | 1st xcorr calculation iteration 46: 0.390918 1472 | 2nd xcorr calculation iteration 46: 0.108392 1473 | Comparing from frame 6439 to 22439 1474 | 1st xcorr calculation iteration 47: 0.391934 1475 | 2nd xcorr calculation iteration 47: 0.108831 1476 | Comparing from frame 6576 to 22576 1477 | 1st xcorr calculation iteration 48: 0.399247 1478 | 2nd xcorr calculation iteration 48: 0.115653 1479 | Comparing from frame 6713 to 22713 1480 | 1st xcorr calculation iteration 49: 0.397192 1481 | 2nd xcorr calculation iteration 49: 0.112888 1482 | Comparing from frame 6850 to 22850 1483 | 1st xcorr calculation iteration 50: 0.394568 1484 | 2nd xcorr calculation iteration 50: 0.109800 1485 | Comparing from frame 6987 to 22987 1486 | 1st xcorr calculation iteration 51: 0.406143 1487 | 2nd xcorr calculation iteration 51: 0.121117 1488 | Comparing from frame 7124 to 23124 1489 | 1st xcorr calculation iteration 52: 0.404136 1490 | 2nd xcorr calculation iteration 52: 0.119667 1491 | Comparing from frame 7261 to 23261 1492 | 1st xcorr calculation iteration 53: 0.393840 1493 | 2nd xcorr calculation iteration 53: 0.111297 1494 | Comparing from frame 7398 to 23398 1495 | 1st xcorr calculation iteration 54: 0.412045 1496 | 2nd xcorr calculation iteration 54: 0.129344 1497 | Comparing from frame 7535 to 23535 1498 | 1st xcorr calculation iteration 55: 0.394630 1499 | 2nd xcorr calculation iteration 55: 0.112887 1500 | Comparing from frame 7672 to 23672 1501 | 1st xcorr calculation iteration 56: 0.394819 1502 | 2nd xcorr calculation iteration 56: 0.113979 1503 | Comparing from frame 7809 to 23809 1504 | 1st xcorr calculation iteration 57: 0.403321 1505 | 2nd xcorr calculation iteration 57: 0.124571 1506 | Comparing from frame 7946 to 23946 1507 | 1st xcorr calculation iteration 58: 0.393778 1508 | 2nd xcorr calculation iteration 58: 0.115809 1509 | Comparing from frame 8083 to 24083 1510 | 1st xcorr calculation iteration 59: 0.405414 1511 | 2nd xcorr calculation iteration 59: 0.128325 1512 | Comparing from frame 8220 to 24220 1513 | 1st xcorr calculation iteration 60: 0.396991 1514 | 2nd xcorr calculation iteration 60: 0.121483 1515 | Comparing from frame 8357 to 24357 1516 | 1st xcorr calculation iteration 61: 0.401072 1517 | 2nd xcorr calculation iteration 61: 0.125681 1518 | Comparing from frame 8494 to 24494 1519 | 1st xcorr calculation iteration 62: 0.392085 1520 | 2nd xcorr calculation iteration 62: 0.117268 1521 | Comparing from frame 8631 to 24631 1522 | 1st xcorr calculation iteration 63: 0.392029 1523 | 2nd xcorr calculation iteration 63: 0.118446 1524 | Comparing from frame 8768 to 24768 1525 | 1st xcorr calculation iteration 64: 0.390525 1526 | 2nd xcorr calculation iteration 64: 0.117952 1527 | Comparing from frame 8905 to 24905 1528 | 1st xcorr calculation iteration 65: 0.401102 1529 | 2nd xcorr calculation iteration 65: 0.128937 1530 | Comparing from frame 9042 to 25042 1531 | 1st xcorr calculation iteration 66: 0.387629 1532 | 2nd xcorr calculation iteration 66: 0.116637 1533 | Comparing from frame 9179 to 25179 1534 | 1st xcorr calculation iteration 67: 0.387605 1535 | 2nd xcorr calculation iteration 67: 0.117978 1536 | Comparing from frame 9316 to 25316 1537 | 1st xcorr calculation iteration 68: 0.399524 1538 | 2nd xcorr calculation iteration 68: 0.130448 1539 | Comparing from frame 9453 to 25453 1540 | 1st xcorr calculation iteration 69: 0.404024 1541 | 2nd xcorr calculation iteration 69: 0.135954 1542 | Comparing from frame 9590 to 25590 1543 | 1st xcorr calculation iteration 70: 0.392080 1544 | 2nd xcorr calculation iteration 70: 0.126176 1545 | Comparing from frame 9727 to 25727 1546 | 1st xcorr calculation iteration 71: 0.389836 1547 | 2nd xcorr calculation iteration 71: 0.128500 1548 | Comparing from frame 9864 to 25864 1549 | 1st xcorr calculation iteration 72: 0.375367 1550 | 2nd xcorr calculation iteration 72: 0.114487 1551 | Comparing from frame 10001 to 26001 1552 | 1st xcorr calculation iteration 73: 0.374282 1553 | 2nd xcorr calculation iteration 73: 0.114700 1554 | Comparing from frame 10138 to 26138 1555 | 1st xcorr calculation iteration 74: 0.392055 1556 | 2nd xcorr calculation iteration 74: 0.133756 1557 | Comparing from frame 10275 to 26275 1558 | 1st xcorr calculation iteration 75: 0.375080 1559 | 2nd xcorr calculation iteration 75: 0.117738 1560 | Comparing from frame 10412 to 26412 1561 | 1st xcorr calculation iteration 76: 0.378728 1562 | 2nd xcorr calculation iteration 76: 0.123643 1563 | Comparing from frame 10549 to 26549 1564 | 1st xcorr calculation iteration 77: 0.371122 1565 | 2nd xcorr calculation iteration 77: 0.118335 1566 | Comparing from frame 10686 to 26686 1567 | 1st xcorr calculation iteration 78: 0.361965 1568 | 2nd xcorr calculation iteration 78: 0.114067 1569 | Comparing from frame 10823 to 26823 1570 | 1st xcorr calculation iteration 79: 0.366277 1571 | 2nd xcorr calculation iteration 79: 0.118791 1572 | Comparing from frame 10960 to 26960 1573 | 1st xcorr calculation iteration 80: 0.358020 1574 | 2nd xcorr calculation iteration 80: 0.112971 1575 | Comparing from frame 11097 to 27097 1576 | 1st xcorr calculation iteration 81: 0.358324 1577 | 2nd xcorr calculation iteration 81: 0.115111 1578 | Comparing from frame 11234 to 27234 1579 | 1st xcorr calculation iteration 82: 0.359811 1580 | 2nd xcorr calculation iteration 82: 0.119162 1581 | Comparing from frame 11371 to 27371 1582 | 1st xcorr calculation iteration 83: 0.365781 1583 | 2nd xcorr calculation iteration 83: 0.127072 1584 | amount_computed_pieces: 200 1585 | numNbest: 2 1586 | average_xcorr before divided: 40.083961 1587 | Average xcorr final: 0.100210 1588 | Computing the average xcorr between 1 and 3 1589 | the xcorr_values between 1 and 3 is 0.100210 1590 | frames: 27833 1591 | Amount of scroll: 137 1592 | Comparing from frame 137 to 16137 1593 | 1st xcorr calculation iteration 1: 0.217014 1594 | 2nd xcorr calculation iteration 1: 0.160443 1595 | Comparing from frame 274 to 16274 1596 | 1st xcorr calculation iteration 2: 0.188075 1597 | 2nd xcorr calculation iteration 2: 0.134135 1598 | Comparing from frame 411 to 16411 1599 | 1st xcorr calculation iteration 3: 0.202812 1600 | 2nd xcorr calculation iteration 3: 0.148412 1601 | Comparing from frame 548 to 16548 1602 | 1st xcorr calculation iteration 4: 0.190911 1603 | 2nd xcorr calculation iteration 4: 0.139617 1604 | Comparing from frame 685 to 16685 1605 | 1st xcorr calculation iteration 5: 0.194490 1606 | 2nd xcorr calculation iteration 5: 0.143508 1607 | Comparing from frame 822 to 16822 1608 | 1st xcorr calculation iteration 6: 0.193441 1609 | 2nd xcorr calculation iteration 6: 0.143792 1610 | Comparing from frame 959 to 16959 1611 | 1st xcorr calculation iteration 7: 0.196720 1612 | 2nd xcorr calculation iteration 7: 0.148861 1613 | Comparing from frame 1096 to 17096 1614 | 1st xcorr calculation iteration 8: 0.200469 1615 | 2nd xcorr calculation iteration 8: 0.153844 1616 | Comparing from frame 1233 to 17233 1617 | 1st xcorr calculation iteration 9: 0.197666 1618 | 2nd xcorr calculation iteration 9: 0.152193 1619 | Comparing from frame 1370 to 17370 1620 | 1st xcorr calculation iteration 10: 0.194481 1621 | 2nd xcorr calculation iteration 10: 0.151132 1622 | Comparing from frame 1507 to 17507 1623 | 1st xcorr calculation iteration 11: 0.198076 1624 | 2nd xcorr calculation iteration 11: 0.156019 1625 | Comparing from frame 1644 to 17644 1626 | 1st xcorr calculation iteration 12: 0.191257 1627 | 2nd xcorr calculation iteration 12: 0.151401 1628 | Comparing from frame 1781 to 17781 1629 | 1st xcorr calculation iteration 13: 0.192266 1630 | 2nd xcorr calculation iteration 13: 0.156172 1631 | Comparing from frame 1918 to 17918 1632 | 1st xcorr calculation iteration 14: 0.189151 1633 | 2nd xcorr calculation iteration 14: 0.155650 1634 | Comparing from frame 2055 to 18055 1635 | 1st xcorr calculation iteration 15: 0.183366 1636 | 2nd xcorr calculation iteration 15: 0.152010 1637 | Comparing from frame 2192 to 18192 1638 | 1st xcorr calculation iteration 16: 0.191169 1639 | 2nd xcorr calculation iteration 16: 0.164180 1640 | Comparing from frame 2329 to 18329 1641 | 1st xcorr calculation iteration 17: 0.191739 1642 | 2nd xcorr calculation iteration 17: 0.170026 1643 | Comparing from frame 2466 to 18466 1644 | 1st xcorr calculation iteration 18: 0.182122 1645 | 2nd xcorr calculation iteration 18: 0.165850 1646 | Comparing from frame 2603 to 18603 1647 | 1st xcorr calculation iteration 19: 0.182340 1648 | 2nd xcorr calculation iteration 19: 0.171826 1649 | Comparing from frame 2740 to 18740 1650 | 1st xcorr calculation iteration 20: 0.179431 1651 | 2nd xcorr calculation iteration 20: 0.175050 1652 | Comparing from frame 2877 to 18877 1653 | 1st xcorr calculation iteration 21: 0.178336 1654 | 2nd xcorr calculation iteration 21: 0.177295 1655 | Comparing from frame 3014 to 19014 1656 | 1st xcorr calculation iteration 22: 0.183482 1657 | 2nd xcorr calculation iteration 22: 0.174904 1658 | Comparing from frame 3151 to 19151 1659 | 1st xcorr calculation iteration 23: 0.184225 1660 | 2nd xcorr calculation iteration 23: 0.169564 1661 | Comparing from frame 3288 to 19288 1662 | 1st xcorr calculation iteration 24: 0.192906 1663 | 2nd xcorr calculation iteration 24: 0.171416 1664 | Comparing from frame 3425 to 19425 1665 | 1st xcorr calculation iteration 25: 0.199196 1666 | 2nd xcorr calculation iteration 25: 0.170469 1667 | Comparing from frame 3562 to 19562 1668 | 1st xcorr calculation iteration 26: 0.197538 1669 | 2nd xcorr calculation iteration 26: 0.161662 1670 | Comparing from frame 3699 to 19699 1671 | 1st xcorr calculation iteration 27: 0.206598 1672 | 2nd xcorr calculation iteration 27: 0.162792 1673 | Comparing from frame 3836 to 19836 1674 | 1st xcorr calculation iteration 28: 0.216114 1675 | 2nd xcorr calculation iteration 28: 0.164885 1676 | Comparing from frame 3973 to 19973 1677 | 1st xcorr calculation iteration 29: 0.214159 1678 | 2nd xcorr calculation iteration 29: 0.159520 1679 | Comparing from frame 4110 to 20110 1680 | 1st xcorr calculation iteration 30: 0.220020 1681 | 2nd xcorr calculation iteration 30: 0.160232 1682 | Comparing from frame 4247 to 20247 1683 | 1st xcorr calculation iteration 31: 0.227490 1684 | 2nd xcorr calculation iteration 31: 0.158266 1685 | Comparing from frame 4384 to 20384 1686 | 1st xcorr calculation iteration 32: 0.232808 1687 | 2nd xcorr calculation iteration 32: 0.159159 1688 | Comparing from frame 4521 to 20521 1689 | 1st xcorr calculation iteration 33: 0.238723 1690 | 2nd xcorr calculation iteration 33: 0.158144 1691 | Comparing from frame 4658 to 20658 1692 | 1st xcorr calculation iteration 34: 0.240671 1693 | 2nd xcorr calculation iteration 34: 0.159718 1694 | Comparing from frame 4795 to 20795 1695 | 1st xcorr calculation iteration 35: 0.240839 1696 | 2nd xcorr calculation iteration 35: 0.164166 1697 | Comparing from frame 4932 to 20932 1698 | 1st xcorr calculation iteration 36: 0.248891 1699 | 2nd xcorr calculation iteration 36: 0.161963 1700 | Comparing from frame 5069 to 21069 1701 | 1st xcorr calculation iteration 37: 0.249903 1702 | 2nd xcorr calculation iteration 37: 0.165013 1703 | Comparing from frame 5206 to 21206 1704 | 1st xcorr calculation iteration 38: 0.254189 1705 | 2nd xcorr calculation iteration 38: 0.164930 1706 | Comparing from frame 5343 to 21343 1707 | 1st xcorr calculation iteration 39: 0.263888 1708 | 2nd xcorr calculation iteration 39: 0.159901 1709 | Comparing from frame 5480 to 21480 1710 | 1st xcorr calculation iteration 40: 0.268304 1711 | 2nd xcorr calculation iteration 40: 0.158971 1712 | Comparing from frame 5617 to 21617 1713 | 1st xcorr calculation iteration 41: 0.268073 1714 | 2nd xcorr calculation iteration 41: 0.162989 1715 | Comparing from frame 5754 to 21754 1716 | 1st xcorr calculation iteration 42: 0.268506 1717 | 2nd xcorr calculation iteration 42: 0.165438 1718 | Comparing from frame 5891 to 21891 1719 | 1st xcorr calculation iteration 43: 0.272437 1720 | 2nd xcorr calculation iteration 43: 0.164989 1721 | Comparing from frame 6028 to 22028 1722 | 1st xcorr calculation iteration 44: 0.272660 1723 | 2nd xcorr calculation iteration 44: 0.167769 1724 | Comparing from frame 6165 to 22165 1725 | 1st xcorr calculation iteration 45: 0.276272 1726 | 2nd xcorr calculation iteration 45: 0.167566 1727 | Comparing from frame 6302 to 22302 1728 | 1st xcorr calculation iteration 46: 0.276825 1729 | 2nd xcorr calculation iteration 46: 0.170988 1730 | Comparing from frame 6439 to 22439 1731 | 1st xcorr calculation iteration 47: 0.277957 1732 | 2nd xcorr calculation iteration 47: 0.172621 1733 | Comparing from frame 6576 to 22576 1734 | 1st xcorr calculation iteration 48: 0.283527 1735 | 2nd xcorr calculation iteration 48: 0.171165 1736 | Comparing from frame 6713 to 22713 1737 | 1st xcorr calculation iteration 49: 0.283725 1738 | 2nd xcorr calculation iteration 49: 0.172998 1739 | Comparing from frame 6850 to 22850 1740 | 1st xcorr calculation iteration 50: 0.284126 1741 | 2nd xcorr calculation iteration 50: 0.174439 1742 | Comparing from frame 6987 to 22987 1743 | 1st xcorr calculation iteration 51: 0.285369 1744 | 2nd xcorr calculation iteration 51: 0.174580 1745 | Comparing from frame 7124 to 23124 1746 | 1st xcorr calculation iteration 52: 0.289022 1747 | 2nd xcorr calculation iteration 52: 0.172748 1748 | Comparing from frame 7261 to 23261 1749 | 1st xcorr calculation iteration 53: 0.283165 1750 | 2nd xcorr calculation iteration 53: 0.177697 1751 | Comparing from frame 7398 to 23398 1752 | 1st xcorr calculation iteration 54: 0.304374 1753 | 2nd xcorr calculation iteration 54: 0.156495 1754 | Comparing from frame 7535 to 23535 1755 | 1st xcorr calculation iteration 55: 0.282605 1756 | 2nd xcorr calculation iteration 55: 0.179780 1757 | Comparing from frame 7672 to 23672 1758 | 1st xcorr calculation iteration 56: 0.284071 1759 | 2nd xcorr calculation iteration 56: 0.177112 1760 | Comparing from frame 7809 to 23809 1761 | 1st xcorr calculation iteration 57: 0.293026 1762 | 2nd xcorr calculation iteration 57: 0.169474 1763 | Comparing from frame 7946 to 23946 1764 | 1st xcorr calculation iteration 58: 0.281573 1765 | 2nd xcorr calculation iteration 58: 0.180775 1766 | Comparing from frame 8083 to 24083 1767 | 1st xcorr calculation iteration 59: 0.287913 1768 | 2nd xcorr calculation iteration 59: 0.175018 1769 | Comparing from frame 8220 to 24220 1770 | 1st xcorr calculation iteration 60: 0.280170 1771 | 2nd xcorr calculation iteration 60: 0.182129 1772 | Comparing from frame 8357 to 24357 1773 | 1st xcorr calculation iteration 61: 0.296433 1774 | 2nd xcorr calculation iteration 61: 0.165128 1775 | Comparing from frame 8494 to 24494 1776 | 1st xcorr calculation iteration 62: 0.299001 1777 | 2nd xcorr calculation iteration 62: 0.164363 1778 | Comparing from frame 8631 to 24631 1779 | 1st xcorr calculation iteration 63: 0.276640 1780 | 2nd xcorr calculation iteration 63: 0.186768 1781 | Comparing from frame 8768 to 24768 1782 | 1st xcorr calculation iteration 64: 0.282186 1783 | 2nd xcorr calculation iteration 64: 0.181972 1784 | Comparing from frame 8905 to 24905 1785 | 1st xcorr calculation iteration 65: 0.289586 1786 | 2nd xcorr calculation iteration 65: 0.172573 1787 | Comparing from frame 9042 to 25042 1788 | 1st xcorr calculation iteration 66: 0.276828 1789 | 2nd xcorr calculation iteration 66: 0.183873 1790 | Comparing from frame 9179 to 25179 1791 | 1st xcorr calculation iteration 67: 0.279878 1792 | 2nd xcorr calculation iteration 67: 0.179573 1793 | Comparing from frame 9316 to 25316 1794 | 1st xcorr calculation iteration 68: 0.276925 1795 | 2nd xcorr calculation iteration 68: 0.180487 1796 | Comparing from frame 9453 to 25453 1797 | 1st xcorr calculation iteration 69: 0.292831 1798 | 2nd xcorr calculation iteration 69: 0.159825 1799 | Comparing from frame 9590 to 25590 1800 | 1st xcorr calculation iteration 70: 0.277458 1801 | 2nd xcorr calculation iteration 70: 0.176716 1802 | Comparing from frame 9727 to 25727 1803 | 1st xcorr calculation iteration 71: 0.275244 1804 | 2nd xcorr calculation iteration 71: 0.176326 1805 | Comparing from frame 9864 to 25864 1806 | 1st xcorr calculation iteration 72: 0.273089 1807 | 2nd xcorr calculation iteration 72: 0.176576 1808 | Comparing from frame 10001 to 26001 1809 | 1st xcorr calculation iteration 73: 0.283525 1810 | 2nd xcorr calculation iteration 73: 0.164018 1811 | Comparing from frame 10138 to 26138 1812 | 1st xcorr calculation iteration 74: 0.275815 1813 | 2nd xcorr calculation iteration 74: 0.170143 1814 | Comparing from frame 10275 to 26275 1815 | 1st xcorr calculation iteration 75: 0.275723 1816 | 2nd xcorr calculation iteration 75: 0.167979 1817 | Comparing from frame 10412 to 26412 1818 | 1st xcorr calculation iteration 76: 0.265450 1819 | 2nd xcorr calculation iteration 76: 0.175095 1820 | Comparing from frame 10549 to 26549 1821 | 1st xcorr calculation iteration 77: 0.262907 1822 | 2nd xcorr calculation iteration 77: 0.174787 1823 | Comparing from frame 10686 to 26686 1824 | 1st xcorr calculation iteration 78: 0.254516 1825 | 2nd xcorr calculation iteration 78: 0.179050 1826 | Comparing from frame 10823 to 26823 1827 | 1st xcorr calculation iteration 79: 0.254573 1828 | 2nd xcorr calculation iteration 79: 0.175406 1829 | Comparing from frame 10960 to 26960 1830 | 1st xcorr calculation iteration 80: 0.249203 1831 | 2nd xcorr calculation iteration 80: 0.176582 1832 | Comparing from frame 11097 to 27097 1833 | 1st xcorr calculation iteration 81: 0.250080 1834 | 2nd xcorr calculation iteration 81: 0.172045 1835 | Comparing from frame 11234 to 27234 1836 | 1st xcorr calculation iteration 82: 0.246552 1837 | 2nd xcorr calculation iteration 82: 0.170905 1838 | Comparing from frame 11371 to 27371 1839 | 1st xcorr calculation iteration 83: 0.252407 1840 | 2nd xcorr calculation iteration 83: 0.161011 1841 | amount_computed_pieces: 200 1842 | numNbest: 2 1843 | average_xcorr before divided: 34.022575 1844 | Average xcorr final: 0.085056 1845 | Computing the average xcorr between 1 and 4 1846 | the xcorr_values between 1 and 4 is 0.085056 1847 | frames: 27833 1848 | Amount of scroll: 137 1849 | Comparing from frame 137 to 16137 1850 | 1st xcorr calculation iteration 1: 0.355391 1851 | 2nd xcorr calculation iteration 1: 0.136275 1852 | Comparing from frame 274 to 16274 1853 | 1st xcorr calculation iteration 2: 0.349029 1854 | 2nd xcorr calculation iteration 2: 0.131634 1855 | Comparing from frame 411 to 16411 1856 | 1st xcorr calculation iteration 3: 0.359550 1857 | 2nd xcorr calculation iteration 3: 0.136651 1858 | Comparing from frame 548 to 16548 1859 | 1st xcorr calculation iteration 4: 0.368232 1860 | 2nd xcorr calculation iteration 4: 0.143763 1861 | Comparing from frame 685 to 16685 1862 | 1st xcorr calculation iteration 5: 0.371331 1863 | 2nd xcorr calculation iteration 5: 0.145511 1864 | Comparing from frame 822 to 16822 1865 | 1st xcorr calculation iteration 6: 0.374009 1866 | 2nd xcorr calculation iteration 6: 0.146246 1867 | Comparing from frame 959 to 16959 1868 | 1st xcorr calculation iteration 7: 0.375407 1869 | 2nd xcorr calculation iteration 7: 0.146743 1870 | Comparing from frame 1096 to 17096 1871 | 1st xcorr calculation iteration 8: 0.375190 1872 | 2nd xcorr calculation iteration 8: 0.144683 1873 | Comparing from frame 1233 to 17233 1874 | 1st xcorr calculation iteration 9: 0.385402 1875 | 2nd xcorr calculation iteration 9: 0.152108 1876 | Comparing from frame 1370 to 17370 1877 | 1st xcorr calculation iteration 10: 0.388778 1878 | 2nd xcorr calculation iteration 10: 0.153307 1879 | Comparing from frame 1507 to 17507 1880 | 1st xcorr calculation iteration 11: 0.384976 1881 | 2nd xcorr calculation iteration 11: 0.146594 1882 | Comparing from frame 1644 to 17644 1883 | 1st xcorr calculation iteration 12: 0.401677 1884 | 2nd xcorr calculation iteration 12: 0.160010 1885 | Comparing from frame 1781 to 17781 1886 | 1st xcorr calculation iteration 13: 0.403646 1887 | 2nd xcorr calculation iteration 13: 0.158194 1888 | Comparing from frame 1918 to 17918 1889 | 1st xcorr calculation iteration 14: 0.413897 1890 | 2nd xcorr calculation iteration 14: 0.163309 1891 | Comparing from frame 2055 to 18055 1892 | 1st xcorr calculation iteration 15: 0.414582 1893 | 2nd xcorr calculation iteration 15: 0.160141 1894 | Comparing from frame 2192 to 18192 1895 | 1st xcorr calculation iteration 16: 0.420638 1896 | 2nd xcorr calculation iteration 16: 0.162334 1897 | Comparing from frame 2329 to 18329 1898 | 1st xcorr calculation iteration 17: 0.417377 1899 | 2nd xcorr calculation iteration 17: 0.155564 1900 | Comparing from frame 2466 to 18466 1901 | 1st xcorr calculation iteration 18: 0.432142 1902 | 2nd xcorr calculation iteration 18: 0.165693 1903 | Comparing from frame 2603 to 18603 1904 | 1st xcorr calculation iteration 19: 0.434045 1905 | 2nd xcorr calculation iteration 19: 0.164370 1906 | Comparing from frame 2740 to 18740 1907 | 1st xcorr calculation iteration 20: 0.439176 1908 | 2nd xcorr calculation iteration 20: 0.164609 1909 | Comparing from frame 2877 to 18877 1910 | 1st xcorr calculation iteration 21: 0.444913 1911 | 2nd xcorr calculation iteration 21: 0.168008 1912 | Comparing from frame 3014 to 19014 1913 | 1st xcorr calculation iteration 22: 0.448724 1914 | 2nd xcorr calculation iteration 22: 0.168066 1915 | Comparing from frame 3151 to 19151 1916 | 1st xcorr calculation iteration 23: 0.451595 1917 | 2nd xcorr calculation iteration 23: 0.166834 1918 | Comparing from frame 3288 to 19288 1919 | 1st xcorr calculation iteration 24: 0.458200 1920 | 2nd xcorr calculation iteration 24: 0.168872 1921 | Comparing from frame 3425 to 19425 1922 | 1st xcorr calculation iteration 25: 0.458743 1923 | 2nd xcorr calculation iteration 25: 0.165992 1924 | Comparing from frame 3562 to 19562 1925 | 1st xcorr calculation iteration 26: 0.462590 1926 | 2nd xcorr calculation iteration 26: 0.165819 1927 | Comparing from frame 3699 to 19699 1928 | 1st xcorr calculation iteration 27: 0.466349 1929 | 2nd xcorr calculation iteration 27: 0.166836 1930 | Comparing from frame 3836 to 19836 1931 | 1st xcorr calculation iteration 28: 0.468934 1932 | 2nd xcorr calculation iteration 28: 0.166179 1933 | Comparing from frame 3973 to 19973 1934 | 1st xcorr calculation iteration 29: 0.469706 1935 | 2nd xcorr calculation iteration 29: 0.164321 1936 | Comparing from frame 4110 to 20110 1937 | 1st xcorr calculation iteration 30: 0.472055 1938 | 2nd xcorr calculation iteration 30: 0.163511 1939 | Comparing from frame 4247 to 20247 1940 | 1st xcorr calculation iteration 31: 0.470402 1941 | 2nd xcorr calculation iteration 31: 0.159547 1942 | Comparing from frame 4384 to 20384 1943 | 1st xcorr calculation iteration 32: 0.465925 1944 | 2nd xcorr calculation iteration 32: 0.154134 1945 | Comparing from frame 4521 to 20521 1946 | 1st xcorr calculation iteration 33: 0.474582 1947 | 2nd xcorr calculation iteration 33: 0.162044 1948 | Comparing from frame 4658 to 20658 1949 | 1st xcorr calculation iteration 34: 0.474066 1950 | 2nd xcorr calculation iteration 34: 0.162030 1951 | Comparing from frame 4795 to 20795 1952 | 1st xcorr calculation iteration 35: 0.479748 1953 | 2nd xcorr calculation iteration 35: 0.166993 1954 | Comparing from frame 4932 to 20932 1955 | 1st xcorr calculation iteration 36: 0.478470 1956 | 2nd xcorr calculation iteration 36: 0.165601 1957 | Comparing from frame 5069 to 21069 1958 | 1st xcorr calculation iteration 37: 0.480828 1959 | 2nd xcorr calculation iteration 37: 0.166133 1960 | Comparing from frame 5206 to 21206 1961 | 1st xcorr calculation iteration 38: 0.481707 1962 | 2nd xcorr calculation iteration 38: 0.165480 1963 | Comparing from frame 5343 to 21343 1964 | 1st xcorr calculation iteration 39: 0.476249 1965 | 2nd xcorr calculation iteration 39: 0.158858 1966 | Comparing from frame 5480 to 21480 1967 | 1st xcorr calculation iteration 40: 0.480419 1968 | 2nd xcorr calculation iteration 40: 0.161727 1969 | Comparing from frame 5617 to 21617 1970 | 1st xcorr calculation iteration 41: 0.485536 1971 | 2nd xcorr calculation iteration 41: 0.165413 1972 | Comparing from frame 5754 to 21754 1973 | 1st xcorr calculation iteration 42: 0.486780 1974 | 2nd xcorr calculation iteration 42: 0.165024 1975 | Comparing from frame 5891 to 21891 1976 | 1st xcorr calculation iteration 43: 0.485999 1977 | 2nd xcorr calculation iteration 43: 0.162417 1978 | Comparing from frame 6028 to 22028 1979 | 1st xcorr calculation iteration 44: 0.489356 1980 | 2nd xcorr calculation iteration 44: 0.165036 1981 | Comparing from frame 6165 to 22165 1982 | 1st xcorr calculation iteration 45: 0.488006 1983 | 2nd xcorr calculation iteration 45: 0.162709 1984 | Comparing from frame 6302 to 22302 1985 | 1st xcorr calculation iteration 46: 0.488714 1986 | 2nd xcorr calculation iteration 46: 0.162785 1987 | Comparing from frame 6439 to 22439 1988 | 1st xcorr calculation iteration 47: 0.489057 1989 | 2nd xcorr calculation iteration 47: 0.162462 1990 | Comparing from frame 6576 to 22576 1991 | 1st xcorr calculation iteration 48: 0.484303 1992 | 2nd xcorr calculation iteration 48: 0.157633 1993 | Comparing from frame 6713 to 22713 1994 | 1st xcorr calculation iteration 49: 0.486359 1995 | 2nd xcorr calculation iteration 49: 0.158281 1996 | Comparing from frame 6850 to 22850 1997 | 1st xcorr calculation iteration 50: 0.489665 1998 | 2nd xcorr calculation iteration 50: 0.160435 1999 | Comparing from frame 6987 to 22987 2000 | 1st xcorr calculation iteration 51: 0.485396 2001 | 2nd xcorr calculation iteration 51: 0.156648 2002 | Comparing from frame 7124 to 23124 2003 | 1st xcorr calculation iteration 52: 0.470893 2004 | 2nd xcorr calculation iteration 52: 0.167225 2005 | Comparing from frame 7261 to 23261 2006 | 1st xcorr calculation iteration 53: 0.490985 2007 | 2nd xcorr calculation iteration 53: 0.161876 2008 | Comparing from frame 7398 to 23398 2009 | 1st xcorr calculation iteration 54: 0.473323 2010 | 2nd xcorr calculation iteration 54: 0.167518 2011 | Comparing from frame 7535 to 23535 2012 | 1st xcorr calculation iteration 55: 0.480426 2013 | 2nd xcorr calculation iteration 55: 0.160542 2014 | Comparing from frame 7672 to 23672 2015 | 1st xcorr calculation iteration 56: 0.479196 2016 | 2nd xcorr calculation iteration 56: 0.160263 2017 | Comparing from frame 7809 to 23809 2018 | 1st xcorr calculation iteration 57: 0.482543 2019 | 2nd xcorr calculation iteration 57: 0.158711 2020 | Comparing from frame 7946 to 23946 2021 | 1st xcorr calculation iteration 58: 0.483266 2022 | 2nd xcorr calculation iteration 58: 0.157847 2023 | Comparing from frame 8083 to 24083 2024 | 1st xcorr calculation iteration 59: 0.475684 2025 | 2nd xcorr calculation iteration 59: 0.163723 2026 | Comparing from frame 8220 to 24220 2027 | 1st xcorr calculation iteration 60: 0.465353 2028 | 2nd xcorr calculation iteration 60: 0.169473 2029 | Comparing from frame 8357 to 24357 2030 | 1st xcorr calculation iteration 61: 0.475277 2031 | 2nd xcorr calculation iteration 61: 0.164604 2032 | Comparing from frame 8494 to 24494 2033 | 1st xcorr calculation iteration 62: 0.482974 2034 | 2nd xcorr calculation iteration 62: 0.158788 2035 | Comparing from frame 8631 to 24631 2036 | 1st xcorr calculation iteration 63: 0.479494 2037 | 2nd xcorr calculation iteration 63: 0.155687 2038 | Comparing from frame 8768 to 24768 2039 | 1st xcorr calculation iteration 64: 0.481011 2040 | 2nd xcorr calculation iteration 64: 0.157442 2041 | Comparing from frame 8905 to 24905 2042 | 1st xcorr calculation iteration 65: 0.471370 2043 | 2nd xcorr calculation iteration 65: 0.162790 2044 | Comparing from frame 9042 to 25042 2045 | 1st xcorr calculation iteration 66: 0.470295 2046 | 2nd xcorr calculation iteration 66: 0.162689 2047 | Comparing from frame 9179 to 25179 2048 | 1st xcorr calculation iteration 67: 0.473010 2049 | 2nd xcorr calculation iteration 67: 0.158576 2050 | Comparing from frame 9316 to 25316 2051 | 1st xcorr calculation iteration 68: 0.458583 2052 | 2nd xcorr calculation iteration 68: 0.168783 2053 | Comparing from frame 9453 to 25453 2054 | 1st xcorr calculation iteration 69: 0.476866 2055 | 2nd xcorr calculation iteration 69: 0.156160 2056 | Comparing from frame 9590 to 25590 2057 | 1st xcorr calculation iteration 70: 0.473791 2058 | 2nd xcorr calculation iteration 70: 0.155516 2059 | Comparing from frame 9727 to 25727 2060 | 1st xcorr calculation iteration 71: 0.464779 2061 | 2nd xcorr calculation iteration 71: 0.163582 2062 | Comparing from frame 9864 to 25864 2063 | 1st xcorr calculation iteration 72: 0.470641 2064 | 2nd xcorr calculation iteration 72: 0.155957 2065 | Comparing from frame 10001 to 26001 2066 | 1st xcorr calculation iteration 73: 0.467540 2067 | 2nd xcorr calculation iteration 73: 0.156861 2068 | Comparing from frame 10138 to 26138 2069 | 1st xcorr calculation iteration 74: 0.462680 2070 | 2nd xcorr calculation iteration 74: 0.158272 2071 | Comparing from frame 10275 to 26275 2072 | 1st xcorr calculation iteration 75: 0.460023 2073 | 2nd xcorr calculation iteration 75: 0.158039 2074 | Comparing from frame 10412 to 26412 2075 | 1st xcorr calculation iteration 76: 0.459980 2076 | 2nd xcorr calculation iteration 76: 0.157109 2077 | Comparing from frame 10549 to 26549 2078 | 1st xcorr calculation iteration 77: 0.456907 2079 | 2nd xcorr calculation iteration 77: 0.155563 2080 | Comparing from frame 10686 to 26686 2081 | 1st xcorr calculation iteration 78: 0.456422 2082 | 2nd xcorr calculation iteration 78: 0.154714 2083 | Comparing from frame 10823 to 26823 2084 | 1st xcorr calculation iteration 79: 0.454724 2085 | 2nd xcorr calculation iteration 79: 0.153361 2086 | Comparing from frame 10960 to 26960 2087 | 1st xcorr calculation iteration 80: 0.454427 2088 | 2nd xcorr calculation iteration 80: 0.152210 2089 | Comparing from frame 11097 to 27097 2090 | 1st xcorr calculation iteration 81: 0.440040 2091 | 2nd xcorr calculation iteration 81: 0.159297 2092 | Comparing from frame 11234 to 27234 2093 | 1st xcorr calculation iteration 82: 0.445618 2094 | 2nd xcorr calculation iteration 82: 0.153276 2095 | Comparing from frame 11371 to 27371 2096 | 1st xcorr calculation iteration 83: 0.437495 2097 | 2nd xcorr calculation iteration 83: 0.153896 2098 | amount_computed_pieces: 200 2099 | numNbest: 2 2100 | average_xcorr before divided: 50.767391 2101 | Average xcorr final: 0.126918 2102 | Computing the average xcorr between 2 and 3 2103 | the xcorr_values between 2 and 3 is 0.126918 2104 | frames: 27833 2105 | Amount of scroll: 137 2106 | Comparing from frame 137 to 16137 2107 | 1st xcorr calculation iteration 1: 0.163842 2108 | 2nd xcorr calculation iteration 1: 0.145840 2109 | Comparing from frame 274 to 16274 2110 | 1st xcorr calculation iteration 2: 0.150618 2111 | 2nd xcorr calculation iteration 2: 0.137778 2112 | Comparing from frame 411 to 16411 2113 | 1st xcorr calculation iteration 3: 0.159630 2114 | 2nd xcorr calculation iteration 3: 0.142721 2115 | Comparing from frame 548 to 16548 2116 | 1st xcorr calculation iteration 4: 0.167771 2117 | 2nd xcorr calculation iteration 4: 0.152067 2118 | Comparing from frame 685 to 16685 2119 | 1st xcorr calculation iteration 5: 0.170650 2120 | 2nd xcorr calculation iteration 5: 0.154363 2121 | Comparing from frame 822 to 16822 2122 | 1st xcorr calculation iteration 6: 0.170279 2123 | 2nd xcorr calculation iteration 6: 0.155028 2124 | Comparing from frame 959 to 16959 2125 | 1st xcorr calculation iteration 7: 0.171011 2126 | 2nd xcorr calculation iteration 7: 0.157166 2127 | Comparing from frame 1096 to 17096 2128 | 1st xcorr calculation iteration 8: 0.158058 2129 | 2nd xcorr calculation iteration 8: 0.148756 2130 | Comparing from frame 1233 to 17233 2131 | 1st xcorr calculation iteration 9: 0.170430 2132 | 2nd xcorr calculation iteration 9: 0.160867 2133 | Comparing from frame 1370 to 17370 2134 | 1st xcorr calculation iteration 10: 0.162427 2135 | 2nd xcorr calculation iteration 10: 0.156227 2136 | Comparing from frame 1507 to 17507 2137 | 1st xcorr calculation iteration 11: 0.151995 2138 | 2nd xcorr calculation iteration 11: 0.148671 2139 | Comparing from frame 1644 to 17644 2140 | 1st xcorr calculation iteration 12: 0.167805 2141 | 2nd xcorr calculation iteration 12: 0.165399 2142 | Comparing from frame 1781 to 17781 2143 | 1st xcorr calculation iteration 13: 0.166542 2144 | 2nd xcorr calculation iteration 13: 0.166135 2145 | Comparing from frame 1918 to 17918 2146 | 1st xcorr calculation iteration 14: 0.170288 2147 | 2nd xcorr calculation iteration 14: 0.168789 2148 | Comparing from frame 2055 to 18055 2149 | 1st xcorr calculation iteration 15: 0.167642 2150 | 2nd xcorr calculation iteration 15: 0.162271 2151 | Comparing from frame 2192 to 18192 2152 | 1st xcorr calculation iteration 16: 0.165668 2153 | 2nd xcorr calculation iteration 16: 0.153409 2154 | Comparing from frame 2329 to 18329 2155 | 1st xcorr calculation iteration 17: 0.162589 2156 | 2nd xcorr calculation iteration 17: 0.144296 2157 | Comparing from frame 2466 to 18466 2158 | 1st xcorr calculation iteration 18: 0.174766 2159 | 2nd xcorr calculation iteration 18: 0.153476 2160 | Comparing from frame 2603 to 18603 2161 | 1st xcorr calculation iteration 19: 0.173172 2162 | 2nd xcorr calculation iteration 19: 0.146125 2163 | Comparing from frame 2740 to 18740 2164 | 1st xcorr calculation iteration 20: 0.176590 2165 | 2nd xcorr calculation iteration 20: 0.145370 2166 | Comparing from frame 2877 to 18877 2167 | 1st xcorr calculation iteration 21: 0.181731 2168 | 2nd xcorr calculation iteration 21: 0.154237 2169 | Comparing from frame 3014 to 19014 2170 | 1st xcorr calculation iteration 22: 0.179821 2171 | 2nd xcorr calculation iteration 22: 0.153419 2172 | Comparing from frame 3151 to 19151 2173 | 1st xcorr calculation iteration 23: 0.181589 2174 | 2nd xcorr calculation iteration 23: 0.159706 2175 | Comparing from frame 3288 to 19288 2176 | 1st xcorr calculation iteration 24: 0.186689 2177 | 2nd xcorr calculation iteration 24: 0.167427 2178 | Comparing from frame 3425 to 19425 2179 | 1st xcorr calculation iteration 25: 0.189209 2180 | 2nd xcorr calculation iteration 25: 0.172919 2181 | Comparing from frame 3562 to 19562 2182 | 1st xcorr calculation iteration 26: 0.189591 2183 | 2nd xcorr calculation iteration 26: 0.175954 2184 | Comparing from frame 3699 to 19699 2185 | 1st xcorr calculation iteration 27: 0.192291 2186 | 2nd xcorr calculation iteration 27: 0.181956 2187 | Comparing from frame 3836 to 19836 2188 | 1st xcorr calculation iteration 28: 0.193218 2189 | 2nd xcorr calculation iteration 28: 0.185455 2190 | Comparing from frame 3973 to 19973 2191 | 1st xcorr calculation iteration 29: 0.192291 2192 | 2nd xcorr calculation iteration 29: 0.185959 2193 | Comparing from frame 4110 to 20110 2194 | 1st xcorr calculation iteration 30: 0.194503 2195 | 2nd xcorr calculation iteration 30: 0.189844 2196 | Comparing from frame 4247 to 20247 2197 | 1st xcorr calculation iteration 31: 0.192526 2198 | 2nd xcorr calculation iteration 31: 0.189659 2199 | Comparing from frame 4384 to 20384 2200 | 1st xcorr calculation iteration 32: 0.190464 2201 | 2nd xcorr calculation iteration 32: 0.189390 2202 | Comparing from frame 4521 to 20521 2203 | 1st xcorr calculation iteration 33: 0.195574 2204 | 2nd xcorr calculation iteration 33: 0.193229 2205 | Comparing from frame 4658 to 20658 2206 | 1st xcorr calculation iteration 34: 0.201473 2207 | 2nd xcorr calculation iteration 34: 0.195154 2208 | Comparing from frame 4795 to 20795 2209 | 1st xcorr calculation iteration 35: 0.208975 2210 | 2nd xcorr calculation iteration 35: 0.196979 2211 | Comparing from frame 4932 to 20932 2212 | 1st xcorr calculation iteration 36: 0.209929 2213 | 2nd xcorr calculation iteration 36: 0.195442 2214 | Comparing from frame 5069 to 21069 2215 | 1st xcorr calculation iteration 37: 0.213245 2216 | 2nd xcorr calculation iteration 37: 0.195947 2217 | Comparing from frame 5206 to 21206 2218 | 1st xcorr calculation iteration 38: 0.217138 2219 | 2nd xcorr calculation iteration 38: 0.195833 2220 | Comparing from frame 5343 to 21343 2221 | 1st xcorr calculation iteration 39: 0.210310 2222 | 2nd xcorr calculation iteration 39: 0.187185 2223 | Comparing from frame 5480 to 21480 2224 | 1st xcorr calculation iteration 40: 0.219013 2225 | 2nd xcorr calculation iteration 40: 0.191177 2226 | Comparing from frame 5617 to 21617 2227 | 1st xcorr calculation iteration 41: 0.228039 2228 | 2nd xcorr calculation iteration 41: 0.194791 2229 | Comparing from frame 5754 to 21754 2230 | 1st xcorr calculation iteration 42: 0.230842 2231 | 2nd xcorr calculation iteration 42: 0.193308 2232 | Comparing from frame 5891 to 21891 2233 | 1st xcorr calculation iteration 43: 0.230230 2234 | 2nd xcorr calculation iteration 43: 0.190257 2235 | Comparing from frame 6028 to 22028 2236 | 1st xcorr calculation iteration 44: 0.235692 2237 | 2nd xcorr calculation iteration 44: 0.191418 2238 | Comparing from frame 6165 to 22165 2239 | 1st xcorr calculation iteration 45: 0.236465 2240 | 2nd xcorr calculation iteration 45: 0.189538 2241 | Comparing from frame 6302 to 22302 2242 | 1st xcorr calculation iteration 46: 0.239439 2243 | 2nd xcorr calculation iteration 46: 0.188714 2244 | Comparing from frame 6439 to 22439 2245 | 1st xcorr calculation iteration 47: 0.241512 2246 | 2nd xcorr calculation iteration 47: 0.188306 2247 | Comparing from frame 6576 to 22576 2248 | 1st xcorr calculation iteration 48: 0.239879 2249 | 2nd xcorr calculation iteration 48: 0.184947 2250 | Comparing from frame 6713 to 22713 2251 | 1st xcorr calculation iteration 49: 0.243183 2252 | 2nd xcorr calculation iteration 49: 0.184225 2253 | Comparing from frame 6850 to 22850 2254 | 1st xcorr calculation iteration 50: 0.248893 2255 | 2nd xcorr calculation iteration 50: 0.185508 2256 | Comparing from frame 6987 to 22987 2257 | 1st xcorr calculation iteration 51: 0.243334 2258 | 2nd xcorr calculation iteration 51: 0.178477 2259 | Comparing from frame 7124 to 23124 2260 | 1st xcorr calculation iteration 52: 0.239023 2261 | 2nd xcorr calculation iteration 52: 0.171713 2262 | Comparing from frame 7261 to 23261 2263 | 1st xcorr calculation iteration 53: 0.257431 2264 | 2nd xcorr calculation iteration 53: 0.184343 2265 | Comparing from frame 7398 to 23398 2266 | 1st xcorr calculation iteration 54: 0.238723 2267 | 2nd xcorr calculation iteration 54: 0.165198 2268 | Comparing from frame 7535 to 23535 2269 | 1st xcorr calculation iteration 55: 0.251245 2270 | 2nd xcorr calculation iteration 55: 0.174180 2271 | Comparing from frame 7672 to 23672 2272 | 1st xcorr calculation iteration 56: 0.252719 2273 | 2nd xcorr calculation iteration 56: 0.173150 2274 | Comparing from frame 7809 to 23809 2275 | 1st xcorr calculation iteration 57: 0.256954 2276 | 2nd xcorr calculation iteration 57: 0.176507 2277 | Comparing from frame 7946 to 23946 2278 | 1st xcorr calculation iteration 58: 0.259678 2279 | 2nd xcorr calculation iteration 58: 0.176505 2280 | Comparing from frame 8083 to 24083 2281 | 1st xcorr calculation iteration 59: 0.246979 2282 | 2nd xcorr calculation iteration 59: 0.164169 2283 | Comparing from frame 8220 to 24220 2284 | 1st xcorr calculation iteration 60: 0.255582 2285 | 2nd xcorr calculation iteration 60: 0.170355 2286 | Comparing from frame 8357 to 24357 2287 | 1st xcorr calculation iteration 61: 0.245155 2288 | 2nd xcorr calculation iteration 61: 0.162959 2289 | Comparing from frame 8494 to 24494 2290 | 1st xcorr calculation iteration 62: 0.242989 2291 | 2nd xcorr calculation iteration 62: 0.159482 2292 | Comparing from frame 8631 to 24631 2293 | 1st xcorr calculation iteration 63: 0.254955 2294 | 2nd xcorr calculation iteration 63: 0.169304 2295 | Comparing from frame 8768 to 24768 2296 | 1st xcorr calculation iteration 64: 0.258479 2297 | 2nd xcorr calculation iteration 64: 0.172361 2298 | Comparing from frame 8905 to 24905 2299 | 1st xcorr calculation iteration 65: 0.254267 2300 | 2nd xcorr calculation iteration 65: 0.167573 2301 | Comparing from frame 9042 to 25042 2302 | 1st xcorr calculation iteration 66: 0.250895 2303 | 2nd xcorr calculation iteration 66: 0.163952 2304 | Comparing from frame 9179 to 25179 2305 | 1st xcorr calculation iteration 67: 0.252227 2306 | 2nd xcorr calculation iteration 67: 0.165034 2307 | Comparing from frame 9316 to 25316 2308 | 1st xcorr calculation iteration 68: 0.252004 2309 | 2nd xcorr calculation iteration 68: 0.164761 2310 | Comparing from frame 9453 to 25453 2311 | 1st xcorr calculation iteration 69: 0.260537 2312 | 2nd xcorr calculation iteration 69: 0.168670 2313 | Comparing from frame 9590 to 25590 2314 | 1st xcorr calculation iteration 70: 0.233182 2315 | 2nd xcorr calculation iteration 70: 0.146928 2316 | Comparing from frame 9727 to 25727 2317 | 1st xcorr calculation iteration 71: 0.244992 2318 | 2nd xcorr calculation iteration 71: 0.157751 2319 | Comparing from frame 9864 to 25864 2320 | 1st xcorr calculation iteration 72: 0.247294 2321 | 2nd xcorr calculation iteration 72: 0.160776 2322 | Comparing from frame 10001 to 26001 2323 | 1st xcorr calculation iteration 73: 0.232361 2324 | 2nd xcorr calculation iteration 73: 0.147055 2325 | Comparing from frame 10138 to 26138 2326 | 1st xcorr calculation iteration 74: 0.252388 2327 | 2nd xcorr calculation iteration 74: 0.165089 2328 | Comparing from frame 10275 to 26275 2329 | 1st xcorr calculation iteration 75: 0.235752 2330 | 2nd xcorr calculation iteration 75: 0.150999 2331 | Comparing from frame 10412 to 26412 2332 | 1st xcorr calculation iteration 76: 0.244584 2333 | 2nd xcorr calculation iteration 76: 0.159328 2334 | Comparing from frame 10549 to 26549 2335 | 1st xcorr calculation iteration 77: 0.244700 2336 | 2nd xcorr calculation iteration 77: 0.159357 2337 | Comparing from frame 10686 to 26686 2338 | 1st xcorr calculation iteration 78: 0.244571 2339 | 2nd xcorr calculation iteration 78: 0.158491 2340 | Comparing from frame 10823 to 26823 2341 | 1st xcorr calculation iteration 79: 0.243821 2342 | 2nd xcorr calculation iteration 79: 0.158838 2343 | Comparing from frame 10960 to 26960 2344 | 1st xcorr calculation iteration 80: 0.243265 2345 | 2nd xcorr calculation iteration 80: 0.158112 2346 | Comparing from frame 11097 to 27097 2347 | 1st xcorr calculation iteration 81: 0.227741 2348 | 2nd xcorr calculation iteration 81: 0.145665 2349 | Comparing from frame 11234 to 27234 2350 | 1st xcorr calculation iteration 82: 0.235855 2351 | 2nd xcorr calculation iteration 82: 0.153199 2352 | Comparing from frame 11371 to 27371 2353 | 1st xcorr calculation iteration 83: 0.229109 2354 | 2nd xcorr calculation iteration 83: 0.146287 2355 | amount_computed_pieces: 200 2356 | numNbest: 2 2357 | average_xcorr before divided: 31.777529 2358 | Average xcorr final: 0.079444 2359 | Computing the average xcorr between 2 and 4 2360 | the xcorr_values between 2 and 4 is 0.079444 2361 | frames: 27833 2362 | Amount of scroll: 137 2363 | Comparing from frame 137 to 16137 2364 | 1st xcorr calculation iteration 1: 0.281499 2365 | 2nd xcorr calculation iteration 1: 0.079819 2366 | Comparing from frame 274 to 16274 2367 | 1st xcorr calculation iteration 2: 0.277796 2368 | 2nd xcorr calculation iteration 2: 0.081168 2369 | Comparing from frame 411 to 16411 2370 | 1st xcorr calculation iteration 3: 0.274306 2371 | 2nd xcorr calculation iteration 3: 0.083883 2372 | Comparing from frame 548 to 16548 2373 | 1st xcorr calculation iteration 4: 0.278498 2374 | 2nd xcorr calculation iteration 4: 0.082211 2375 | Comparing from frame 685 to 16685 2376 | 1st xcorr calculation iteration 5: 0.279320 2377 | 2nd xcorr calculation iteration 5: 0.083094 2378 | Comparing from frame 822 to 16822 2379 | 1st xcorr calculation iteration 6: 0.274153 2380 | 2nd xcorr calculation iteration 6: 0.084330 2381 | Comparing from frame 959 to 16959 2382 | 1st xcorr calculation iteration 7: 0.276827 2383 | 2nd xcorr calculation iteration 7: 0.084948 2384 | Comparing from frame 1096 to 17096 2385 | 1st xcorr calculation iteration 8: 0.279940 2386 | 2nd xcorr calculation iteration 8: 0.081300 2387 | Comparing from frame 1233 to 17233 2388 | 1st xcorr calculation iteration 9: 0.280762 2389 | 2nd xcorr calculation iteration 9: 0.081953 2390 | Comparing from frame 1370 to 17370 2391 | 1st xcorr calculation iteration 10: 0.279080 2392 | 2nd xcorr calculation iteration 10: 0.082716 2393 | Comparing from frame 1507 to 17507 2394 | 1st xcorr calculation iteration 11: 0.279085 2395 | 2nd xcorr calculation iteration 11: 0.082240 2396 | Comparing from frame 1644 to 17644 2397 | 1st xcorr calculation iteration 12: 0.282764 2398 | 2nd xcorr calculation iteration 12: 0.083047 2399 | Comparing from frame 1781 to 17781 2400 | 1st xcorr calculation iteration 13: 0.282095 2401 | 2nd xcorr calculation iteration 13: 0.082614 2402 | Comparing from frame 1918 to 17918 2403 | 1st xcorr calculation iteration 14: 0.285548 2404 | 2nd xcorr calculation iteration 14: 0.083388 2405 | Comparing from frame 2055 to 18055 2406 | 1st xcorr calculation iteration 15: 0.285308 2407 | 2nd xcorr calculation iteration 15: 0.082423 2408 | Comparing from frame 2192 to 18192 2409 | 1st xcorr calculation iteration 16: 0.277888 2410 | 2nd xcorr calculation iteration 16: 0.091522 2411 | Comparing from frame 2329 to 18329 2412 | 1st xcorr calculation iteration 17: 0.277036 2413 | 2nd xcorr calculation iteration 17: 0.095493 2414 | Comparing from frame 2466 to 18466 2415 | 1st xcorr calculation iteration 18: 0.282685 2416 | 2nd xcorr calculation iteration 18: 0.092263 2417 | Comparing from frame 2603 to 18603 2418 | 1st xcorr calculation iteration 19: 0.279062 2419 | 2nd xcorr calculation iteration 19: 0.099524 2420 | Comparing from frame 2740 to 18740 2421 | 1st xcorr calculation iteration 20: 0.280968 2422 | 2nd xcorr calculation iteration 20: 0.100593 2423 | Comparing from frame 2877 to 18877 2424 | 1st xcorr calculation iteration 21: 0.281775 2425 | 2nd xcorr calculation iteration 21: 0.101846 2426 | Comparing from frame 3014 to 19014 2427 | 1st xcorr calculation iteration 22: 0.280732 2428 | 2nd xcorr calculation iteration 22: 0.106432 2429 | Comparing from frame 3151 to 19151 2430 | 1st xcorr calculation iteration 23: 0.280692 2431 | 2nd xcorr calculation iteration 23: 0.109039 2432 | Comparing from frame 3288 to 19288 2433 | 1st xcorr calculation iteration 24: 0.282037 2434 | 2nd xcorr calculation iteration 24: 0.110069 2435 | Comparing from frame 3425 to 19425 2436 | 1st xcorr calculation iteration 25: 0.282078 2437 | 2nd xcorr calculation iteration 25: 0.112493 2438 | Comparing from frame 3562 to 19562 2439 | 1st xcorr calculation iteration 26: 0.282011 2440 | 2nd xcorr calculation iteration 26: 0.114578 2441 | Comparing from frame 3699 to 19699 2442 | 1st xcorr calculation iteration 27: 0.282354 2443 | 2nd xcorr calculation iteration 27: 0.117413 2444 | Comparing from frame 3836 to 19836 2445 | 1st xcorr calculation iteration 28: 0.282107 2446 | 2nd xcorr calculation iteration 28: 0.120690 2447 | Comparing from frame 3973 to 19973 2448 | 1st xcorr calculation iteration 29: 0.280455 2449 | 2nd xcorr calculation iteration 29: 0.124232 2450 | Comparing from frame 4110 to 20110 2451 | 1st xcorr calculation iteration 30: 0.280221 2452 | 2nd xcorr calculation iteration 30: 0.126237 2453 | Comparing from frame 4247 to 20247 2454 | 1st xcorr calculation iteration 31: 0.278799 2455 | 2nd xcorr calculation iteration 31: 0.129951 2456 | Comparing from frame 4384 to 20384 2457 | 1st xcorr calculation iteration 32: 0.274825 2458 | 2nd xcorr calculation iteration 32: 0.135554 2459 | Comparing from frame 4521 to 20521 2460 | 1st xcorr calculation iteration 33: 0.276321 2461 | 2nd xcorr calculation iteration 33: 0.134680 2462 | Comparing from frame 4658 to 20658 2463 | 1st xcorr calculation iteration 34: 0.276347 2464 | 2nd xcorr calculation iteration 34: 0.136217 2465 | Comparing from frame 4795 to 20795 2466 | 1st xcorr calculation iteration 35: 0.278241 2467 | 2nd xcorr calculation iteration 35: 0.135456 2468 | Comparing from frame 4932 to 20932 2469 | 1st xcorr calculation iteration 36: 0.274967 2470 | 2nd xcorr calculation iteration 36: 0.139179 2471 | Comparing from frame 5069 to 21069 2472 | 1st xcorr calculation iteration 37: 0.275151 2473 | 2nd xcorr calculation iteration 37: 0.139512 2474 | Comparing from frame 5206 to 21206 2475 | 1st xcorr calculation iteration 38: 0.273266 2476 | 2nd xcorr calculation iteration 38: 0.142785 2477 | Comparing from frame 5343 to 21343 2478 | 1st xcorr calculation iteration 39: 0.269262 2479 | 2nd xcorr calculation iteration 39: 0.148539 2480 | Comparing from frame 5480 to 21480 2481 | 1st xcorr calculation iteration 40: 0.269585 2482 | 2nd xcorr calculation iteration 40: 0.149392 2483 | Comparing from frame 5617 to 21617 2484 | 1st xcorr calculation iteration 41: 0.271663 2485 | 2nd xcorr calculation iteration 41: 0.148776 2486 | Comparing from frame 5754 to 21754 2487 | 1st xcorr calculation iteration 42: 0.272525 2488 | 2nd xcorr calculation iteration 42: 0.149163 2489 | Comparing from frame 5891 to 21891 2490 | 1st xcorr calculation iteration 43: 0.271844 2491 | 2nd xcorr calculation iteration 43: 0.151529 2492 | Comparing from frame 6028 to 22028 2493 | 1st xcorr calculation iteration 44: 0.271206 2494 | 2nd xcorr calculation iteration 44: 0.153321 2495 | Comparing from frame 6165 to 22165 2496 | 1st xcorr calculation iteration 45: 0.268949 2497 | 2nd xcorr calculation iteration 45: 0.155899 2498 | Comparing from frame 6302 to 22302 2499 | 1st xcorr calculation iteration 46: 0.270545 2500 | 2nd xcorr calculation iteration 46: 0.155591 2501 | Comparing from frame 6439 to 22439 2502 | 1st xcorr calculation iteration 47: 0.270219 2503 | 2nd xcorr calculation iteration 47: 0.157339 2504 | Comparing from frame 6576 to 22576 2505 | 1st xcorr calculation iteration 48: 0.265892 2506 | 2nd xcorr calculation iteration 48: 0.163087 2507 | Comparing from frame 6713 to 22713 2508 | 1st xcorr calculation iteration 49: 0.267868 2509 | 2nd xcorr calculation iteration 49: 0.162534 2510 | Comparing from frame 6850 to 22850 2511 | 1st xcorr calculation iteration 50: 0.266977 2512 | 2nd xcorr calculation iteration 50: 0.164897 2513 | Comparing from frame 6987 to 22987 2514 | 1st xcorr calculation iteration 51: 0.257688 2515 | 2nd xcorr calculation iteration 51: 0.175400 2516 | Comparing from frame 7124 to 23124 2517 | 1st xcorr calculation iteration 52: 0.265417 2518 | 2nd xcorr calculation iteration 52: 0.168605 2519 | Comparing from frame 7261 to 23261 2520 | 1st xcorr calculation iteration 53: 0.269635 2521 | 2nd xcorr calculation iteration 53: 0.165454 2522 | Comparing from frame 7398 to 23398 2523 | 1st xcorr calculation iteration 54: 0.265908 2524 | 2nd xcorr calculation iteration 54: 0.169926 2525 | Comparing from frame 7535 to 23535 2526 | 1st xcorr calculation iteration 55: 0.267655 2527 | 2nd xcorr calculation iteration 55: 0.168425 2528 | Comparing from frame 7672 to 23672 2529 | 1st xcorr calculation iteration 56: 0.269196 2530 | 2nd xcorr calculation iteration 56: 0.167794 2531 | Comparing from frame 7809 to 23809 2532 | 1st xcorr calculation iteration 57: 0.267477 2533 | 2nd xcorr calculation iteration 57: 0.170077 2534 | Comparing from frame 7946 to 23946 2535 | 1st xcorr calculation iteration 58: 0.265666 2536 | 2nd xcorr calculation iteration 58: 0.171881 2537 | Comparing from frame 8083 to 24083 2538 | 1st xcorr calculation iteration 59: 0.253220 2539 | 2nd xcorr calculation iteration 59: 0.184214 2540 | Comparing from frame 8220 to 24220 2541 | 1st xcorr calculation iteration 60: 0.255519 2542 | 2nd xcorr calculation iteration 60: 0.182195 2543 | Comparing from frame 8357 to 24357 2544 | 1st xcorr calculation iteration 61: 0.252325 2545 | 2nd xcorr calculation iteration 61: 0.184124 2546 | Comparing from frame 8494 to 24494 2547 | 1st xcorr calculation iteration 62: 0.242305 2548 | 2nd xcorr calculation iteration 62: 0.193064 2549 | Comparing from frame 8631 to 24631 2550 | 1st xcorr calculation iteration 63: 0.258959 2551 | 2nd xcorr calculation iteration 63: 0.175210 2552 | Comparing from frame 8768 to 24768 2553 | 1st xcorr calculation iteration 64: 0.258475 2554 | 2nd xcorr calculation iteration 64: 0.175132 2555 | Comparing from frame 8905 to 24905 2556 | 1st xcorr calculation iteration 65: 0.256952 2557 | 2nd xcorr calculation iteration 65: 0.176108 2558 | Comparing from frame 9042 to 25042 2559 | 1st xcorr calculation iteration 66: 0.258622 2560 | 2nd xcorr calculation iteration 66: 0.173329 2561 | Comparing from frame 9179 to 25179 2562 | 1st xcorr calculation iteration 67: 0.256868 2563 | 2nd xcorr calculation iteration 67: 0.173752 2564 | Comparing from frame 9316 to 25316 2565 | 1st xcorr calculation iteration 68: 0.248094 2566 | 2nd xcorr calculation iteration 68: 0.181972 2567 | Comparing from frame 9453 to 25453 2568 | 1st xcorr calculation iteration 69: 0.257676 2569 | 2nd xcorr calculation iteration 69: 0.170728 2570 | Comparing from frame 9590 to 25590 2571 | 1st xcorr calculation iteration 70: 0.230475 2572 | 2nd xcorr calculation iteration 70: 0.196106 2573 | Comparing from frame 9727 to 25727 2574 | 1st xcorr calculation iteration 71: 0.246100 2575 | 2nd xcorr calculation iteration 71: 0.177378 2576 | Comparing from frame 9864 to 25864 2577 | 1st xcorr calculation iteration 72: 0.242444 2578 | 2nd xcorr calculation iteration 72: 0.180860 2579 | Comparing from frame 10001 to 26001 2580 | 1st xcorr calculation iteration 73: 0.231999 2581 | 2nd xcorr calculation iteration 73: 0.189893 2582 | Comparing from frame 10138 to 26138 2583 | 1st xcorr calculation iteration 74: 0.244846 2584 | 2nd xcorr calculation iteration 74: 0.175099 2585 | Comparing from frame 10275 to 26275 2586 | 1st xcorr calculation iteration 75: 0.238450 2587 | 2nd xcorr calculation iteration 75: 0.179296 2588 | Comparing from frame 10412 to 26412 2589 | 1st xcorr calculation iteration 76: 0.242983 2590 | 2nd xcorr calculation iteration 76: 0.172175 2591 | Comparing from frame 10549 to 26549 2592 | 1st xcorr calculation iteration 77: 0.242784 2593 | 2nd xcorr calculation iteration 77: 0.170719 2594 | Comparing from frame 10686 to 26686 2595 | 1st xcorr calculation iteration 78: 0.243077 2596 | 2nd xcorr calculation iteration 78: 0.167481 2597 | Comparing from frame 10823 to 26823 2598 | 1st xcorr calculation iteration 79: 0.239381 2599 | 2nd xcorr calculation iteration 79: 0.168406 2600 | Comparing from frame 10960 to 26960 2601 | 1st xcorr calculation iteration 80: 0.239522 2602 | 2nd xcorr calculation iteration 80: 0.166512 2603 | Comparing from frame 11097 to 27097 2604 | 1st xcorr calculation iteration 81: 0.235446 2605 | 2nd xcorr calculation iteration 81: 0.167605 2606 | Comparing from frame 11234 to 27234 2607 | 1st xcorr calculation iteration 82: 0.230446 2608 | 2nd xcorr calculation iteration 82: 0.170350 2609 | Comparing from frame 11371 to 27371 2610 | 1st xcorr calculation iteration 83: 0.225684 2611 | 2nd xcorr calculation iteration 83: 0.172542 2612 | amount_computed_pieces: 200 2613 | numNbest: 2 2614 | average_xcorr before divided: 33.711594 2615 | Average xcorr final: 0.084279 2616 | Computing the average xcorr between 3 and 4 2617 | the xcorr_values between 3 and 4 is 0.084279 2618 | Average xcorr for channel 0: 0.093100 2619 | Average xcorr for channel 1: 0.090343 2620 | Average xcorr for channel 2: 0.090101 2621 | Average xcorr for channel 3: 0.085868 2622 | Average xcorr for channel 4: 0.064248 2623 | Reference channel set to channel 0 2624 | Selected channel 0 as the reference channel 2625 | Computing the scalling factor for the output signal 2626 | Calculating the maximum values of the signal, to do a signal adjustment 2627 | Set the total number of segments from 10 to 1 for computing scalling factor, with segment duration 27833 2628 | Processing channel 0 2629 | signal_scroll: 27833 2630 | amount_frames_read: 27833 2631 | segment_duration: 27833 2632 | The Median maximum energy for channel 0 is 0.413330 2633 | Set the total number of segments from 10 to 1 for computing scalling factor, with segment duration 27833 2634 | Processing channel 1 2635 | signal_scroll: 27833 2636 | amount_frames_read: 27833 2637 | segment_duration: 27833 2638 | The Median maximum energy for channel 1 is 0.312195 2639 | Set the total number of segments from 10 to 1 for computing scalling factor, with segment duration 27833 2640 | Processing channel 2 2641 | signal_scroll: 27833 2642 | amount_frames_read: 27833 2643 | segment_duration: 27833 2644 | The Median maximum energy for channel 2 is 0.306732 2645 | Set the total number of segments from 10 to 1 for computing scalling factor, with segment duration 27833 2646 | Processing channel 3 2647 | signal_scroll: 27833 2648 | amount_frames_read: 27833 2649 | segment_duration: 27833 2650 | The Median maximum energy for channel 3 is 0.299469 2651 | Set the total number of segments from 10 to 1 for computing scalling factor, with segment duration 27833 2652 | Processing channel 4 2653 | signal_scroll: 27833 2654 | amount_frames_read: 27833 2655 | segment_duration: 27833 2656 | The Median maximum energy for channel 4 is 0.582855 2657 | Weighting calculated to adjust the signal: 0.783461 2658 | Finished computation of the scalling factor 2659 | Setting initial Channel Weights...finishedFrames: 27833 2660 | Rate 250, window 500 frames 27833 samplerate 16000 2661 | 0 (1.000) -6 (0.113) 5 (0.138) 3 (0.085) 11 (0.136) 2662 | Processing 0.250 s. (25.000 percent) 0 (1.000) 1 (0.416) -4 (0.361) -4 (0.332) -8 (0.146) 2663 | Processing 0.500 s. (50.000 percent) 0 (1.000) 1 (0.527) -4 (0.382) -4 (0.375) 16 (0.176) 2664 | Processing 0.750 s. (75.000 percent) 0 (1.000) 1 (0.527) -4 (0.411) -4 (0.406) 16 (0.236) 2665 | 2666 | Finished computing delays 2667 | Computing the optimum delays 2668 | Threshold is 0.117919 (min: 0.117919 max 0.394998) 2669 | Thresholding noisy frames lower than 0.117919 2670 | Aplying a noise thresholding 2671 | Channel 0 frame 0: 0 0 0 0 2672 | Channel 0 frame 1: 0 0 0 0 2673 | Channel 0 frame 2: 0 0 0 0 2674 | Channel 0 frame 3: 0 0 0 0 2675 | Channel 1 frame 0: 0 480 480 480 2676 | Channel 1 frame 1: 1 -9 18 8 2677 | Channel 1 frame 2: 1 -9 18 8 2678 | Channel 1 frame 3: 1 -9 13 18 2679 | Channel 2 frame 0: 5 -13 -2 12 2680 | Channel 2 frame 1: -4 -12 8 2 2681 | Channel 2 frame 2: -4 8 -11 29 2682 | Channel 2 frame 3: -4 8 -9 -15 2683 | Channel 3 frame 0: 0 480 480 480 2684 | Channel 3 frame 1: -4 2 -14 14 2685 | Channel 3 frame 2: -4 2 -9 -14 2686 | Channel 3 frame 3: -4 2 20 12 2687 | Channel 4 frame 0: 11 -9 -17 0 2688 | Channel 4 frame 1: -8 16 -1 7 2689 | Channel 4 frame 2: 16 9 -2 -11 2690 | Channel 4 frame 3: 16 -5 28 33 2691 | Finished applying a noise filter 2692 | Deconding Each channel Independently to find the 2-best delays from each N-best inputComputing the 1st best delay 2693 | First best start 2694 | 2695 | Trans_weight selected to 25.000000 2696 | Starting Viterbi with 5 channels and 4 N-best values per channel 2697 | Computing Viterbi for channel 0 2698 | Segmentation Over with Viterbi score = -22.577250 2699 | Computing Viterbi for channel 1 2700 | Segmentation Over with Viterbi score = -1.640073 2701 | Computing Viterbi for channel 2 2702 | Segmentation Over with Viterbi score = -5.326447 2703 | Computing Viterbi for channel 3 2704 | Segmentation Over with Viterbi score = -1.811438 2705 | Computing Viterbi for channel 4 2706 | Segmentation Over with Viterbi score = -7.024652 2707 | First best finish 2708 | Computing the 2nd best delay 2709 | second best start 2710 | 2711 | Trans_weight selected to 25.000000 2712 | Starting Viterbi with 5 channels and 4 N-best values per channel 2713 | Computing Viterbi for channel 0 2714 | Segmentation Over with Viterbi score = -4022.577250 2715 | Computing Viterbi for channel 1 2716 | Segmentation Over with Viterbi score = -1002.100434 2717 | Computing Viterbi for channel 2 2718 | Segmentation Over with Viterbi score = -4.355128 2719 | Computing Viterbi for channel 3 2720 | Segmentation Over with Viterbi score = -1002.005963 2721 | Computing Viterbi for channel 4 2722 | Segmentation Over with Viterbi score = -10.870461 2723 | second best finish 2724 | Done computing the 2nd best delay 2725 | Finished decoding both best paths, writting out results 2726 | 2727 | Decoding all 2-best input delays to find the optimum path in coherence with all channels 2728 | Total number of possible delays: 32 2729 | Starting the viterbi 2730 | Segmentation Over with Viterbi score = -11.747568 2731 | Finished computing optimum delays 2732 | Finished computing the optimum delays 2733 | Printing delays to file 2734 | Summing up all the channels 2735 | Memory allocation for all data 2736 | Finished allocating memory 2737 | 0 frame 0, channel 24000 maximum: 8000, read: 0 2738 | final delay: 0, data_start_out: 0 2739 | 0 frame 1, channel 24000 maximum: 8000, read: 0 2740 | final delay: 0, data_start_out: 0 2741 | 0 frame 2, channel 24000 maximum: 7987, read: 0 2742 | final delay: -13, data_start_out: 13 2743 | 0 frame 3, channel 24000 maximum: 8000, read: 0 2744 | final delay: 0, data_start_out: 0 2745 | 0 frame 4, channel 24000 maximum: 8000, read: 0 2746 | final delay: 11, data_start_out: 0 2747 | local_xcorr[0][1]: 0.025606 2748 | local_xcorr[0][2]: 0.025045 2749 | local_xcorr[0][3]: 0.020987 2750 | local_xcorr[0][4]: 0.008268 2751 | local_xcorr[1][2]: 0.018017 2752 | local_xcorr[1][3]: 0.024076 2753 | local_xcorr[1][4]: 0.006461 2754 | local_xcorr[2][3]: 0.015498 2755 | local_xcorr[2][4]: 0.004600 2756 | local_xcorr[3][4]: 0.000000 2757 | 2758 | channel weight[0]: 0.203992 2759 | channel weight[1]: 0.200536 2760 | channel weight[2]: 0.201166 2761 | channel weight[3]: 0.200536 2762 | channel weight[4]: 0.193770 2763 | 2764 | 1 frame 0, channel 24000 maximum: 8000, read: 0 2765 | final delay: 0, data_start_out: 0 2766 | 1 frame 1, channel 24000 maximum: 8000, read: 0 2767 | final delay: 1, data_start_out: 0 2768 | 1 frame 2, channel 24000 maximum: 8000, read: 0 2769 | final delay: 8, data_start_out: 0 2770 | 1 frame 3, channel 24000 maximum: 8000, read: 0 2771 | final delay: -4, data_start_out: 0 2772 | 1 frame 4, channel 24000 maximum: 8000, read: 0 2773 | final delay: 7, data_start_out: 0 2774 | local_xcorr[0][1]: 0.020044 2775 | local_xcorr[0][2]: 0.011567 2776 | local_xcorr[0][3]: 0.017956 2777 | local_xcorr[0][4]: 0.006670 2778 | local_xcorr[1][2]: 0.011850 2779 | local_xcorr[1][3]: 0.021970 2780 | local_xcorr[1][4]: 0.003301 2781 | local_xcorr[2][3]: 0.008394 2782 | local_xcorr[2][4]: 0.012373 2783 | local_xcorr[3][4]: 0.000000 2784 | 2785 | channel weight[0]: 0.206117 2786 | channel weight[1]: 0.203038 2787 | channel weight[2]: 0.200786 2788 | channel weight[3]: 0.201095 2789 | channel weight[4]: 0.188964 2790 | 2791 | 2 frame 0, channel 24000 maximum: 8000, read: 0 2792 | final delay: 0, data_start_out: 0 2793 | 2 frame 1, channel 24000 maximum: 8000, read: 0 2794 | final delay: 1, data_start_out: 0 2795 | 2 frame 2, channel 24000 maximum: 8000, read: 0 2796 | final delay: 8, data_start_out: 0 2797 | 2 frame 3, channel 24000 maximum: 8000, read: 0 2798 | final delay: -4, data_start_out: 0 2799 | 2 frame 4, channel 24000 maximum: 8000, read: 0 2800 | final delay: 9, data_start_out: 0 2801 | local_xcorr[0][1]: 0.022511 2802 | local_xcorr[0][2]: 0.010705 2803 | local_xcorr[0][3]: 0.023305 2804 | local_xcorr[0][4]: 0.008476 2805 | local_xcorr[1][2]: 0.013280 2806 | local_xcorr[1][3]: 0.026771 2807 | local_xcorr[1][4]: 0.009926 2808 | local_xcorr[2][3]: 0.010941 2809 | local_xcorr[2][4]: 0.018119 2810 | local_xcorr[3][4]: 0.006833 2811 | 2812 | channel weight[0]: 0.206582 2813 | channel weight[1]: 0.204902 2814 | channel weight[2]: 0.199534 2815 | channel weight[3]: 0.202287 2816 | channel weight[4]: 0.186695 2817 | 2818 | 3 frame 0, channel 24000 maximum: 15833, read: 0 2819 | final delay: 0, data_start_out: 0 2820 | 3 frame 1, channel 24000 maximum: 15832, read: 0 2821 | final delay: 1, data_start_out: 0 2822 | 3 frame 2, channel 24000 maximum: 15825, read: 0 2823 | final delay: 8, data_start_out: 0 2824 | 3 frame 3, channel 24000 maximum: 15837, read: 0 2825 | final delay: -4, data_start_out: 0 2826 | 3 frame 4, channel 24000 maximum: 15817, read: 0 2827 | final delay: 16, data_start_out: 0 2828 | local_xcorr[0][1]: 0.012563 2829 | local_xcorr[0][2]: 0.008766 2830 | local_xcorr[0][3]: 0.013783 2831 | local_xcorr[0][4]: 0.004987 2832 | local_xcorr[1][2]: 0.009184 2833 | local_xcorr[1][3]: 0.015122 2834 | local_xcorr[1][4]: 0.006627 2835 | local_xcorr[2][3]: 0.006918 2836 | local_xcorr[2][4]: 0.008614 2837 | local_xcorr[3][4]: 0.003810 2838 | 2839 | channel weight[0]: 0.207348 2840 | channel weight[1]: 0.206693 2841 | channel weight[2]: 0.198818 2842 | channel weight[3]: 0.203138 2843 | channel weight[4]: 0.184003 2844 | 2845 | finished writting files 2846 | Sinc-ed all files' outputs for the 0 best 2847 | Finished summing up all the channels 2848 | Closing all used channels 2849 | Finished closing all the channels 2850 | -------------------------------------------------------------------------------- /sample12/orig_enhan.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gogyzzz/beamformit_matlab/ab0cc4c265e069ba98b541e6cf0324258382358d/sample12/orig_enhan.wav -------------------------------------------------------------------------------- /sample12/wav.list: -------------------------------------------------------------------------------- 1 | path 2 | sample12/F04_421C0207_BUS.CH1.wav 3 | sample12/F04_421C0207_BUS.CH3.wav 4 | sample12/F04_421C0207_BUS.CH4.wav 5 | sample12/F04_421C0207_BUS.CH5.wav 6 | sample12/F04_421C0207_BUS.CH6.wav 7 | -------------------------------------------------------------------------------- /sample13/.log.swp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gogyzzz/beamformit_matlab/ab0cc4c265e069ba98b541e6cf0324258382358d/sample13/.log.swp -------------------------------------------------------------------------------- /sample13/M06_442C020F_BUS.CH1.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gogyzzz/beamformit_matlab/ab0cc4c265e069ba98b541e6cf0324258382358d/sample13/M06_442C020F_BUS.CH1.wav -------------------------------------------------------------------------------- /sample13/M06_442C020F_BUS.CH3.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gogyzzz/beamformit_matlab/ab0cc4c265e069ba98b541e6cf0324258382358d/sample13/M06_442C020F_BUS.CH3.wav -------------------------------------------------------------------------------- /sample13/M06_442C020F_BUS.CH4.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gogyzzz/beamformit_matlab/ab0cc4c265e069ba98b541e6cf0324258382358d/sample13/M06_442C020F_BUS.CH4.wav -------------------------------------------------------------------------------- /sample13/M06_442C020F_BUS.CH5.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gogyzzz/beamformit_matlab/ab0cc4c265e069ba98b541e6cf0324258382358d/sample13/M06_442C020F_BUS.CH5.wav -------------------------------------------------------------------------------- /sample13/M06_442C020F_BUS.CH6.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gogyzzz/beamformit_matlab/ab0cc4c265e069ba98b541e6cf0324258382358d/sample13/M06_442C020F_BUS.CH6.wav -------------------------------------------------------------------------------- /sample13/enhan.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gogyzzz/beamformit_matlab/ab0cc4c265e069ba98b541e6cf0324258382358d/sample13/enhan.wav -------------------------------------------------------------------------------- /sample13/orig_enhan.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gogyzzz/beamformit_matlab/ab0cc4c265e069ba98b541e6cf0324258382358d/sample13/orig_enhan.wav -------------------------------------------------------------------------------- /sample13/wav.list: -------------------------------------------------------------------------------- 1 | path 2 | sample13/M06_442C020F_BUS.CH1.wav 3 | sample13/M06_442C020F_BUS.CH3.wav 4 | sample13/M06_442C020F_BUS.CH4.wav 5 | sample13/M06_442C020F_BUS.CH5.wav 6 | sample13/M06_442C020F_BUS.CH6.wav 7 | --------------------------------------------------------------------------------