@@ -293,7 +293,7 @@ class Comb
293293
294294 void Split2D (int f)
295295 {
296- for (int l = 40 ; l < in_y; l++) {
296+ for (int l = 36 ; l < in_y; l++) {
297297 uint16_t *pline = &Frame[f].rawbuffer [(l - 2 ) * in_x];
298298 uint16_t *line = &Frame[f].rawbuffer [l * in_x];
299299 uint16_t *nline = &Frame[f].rawbuffer [(l + 2 ) * in_x];
@@ -368,7 +368,7 @@ class Comb
368368
369369 void Split3D (int f, bool opt_flow = false )
370370 {
371- for (int l = 40 ; l < in_y; l++) {
371+ for (int l = 36 ; l < in_y; l++) {
372372 uint16_t *line = &Frame[f].rawbuffer [l * in_x];
373373
374374 // shortcuts for previous/next 1D/pixel lines
@@ -417,7 +417,7 @@ class Comb
417417
418418 memset (Frame[f].cbuf , 0 , sizeof (cline_t ) * in_y);
419419
420- for (int l = 44 ; l < in_y; l++) {
420+ for (int l = 36 ; l < in_y; l++) {
421421 double msel = 0.0 , sel = 0.0 ;
422422 uint16_t *line = &Frame[f].rawbuffer [l * in_x];
423423 bool invertphase = (line[0 ] == 16384 );
@@ -483,7 +483,7 @@ class Comb
483483 }
484484
485485 void DoCNR (int f, cline_t cbuf[in_y], double min = -1.0 ) {
486- int firstline = (linesout == in_y) ? 20 : 42 ;
486+ int firstline = (linesout == in_y) ? 20 : 38 ;
487487
488488 if (nr_c < min) nr_c = min;
489489 if (nr_c <= 0 ) return ;
@@ -521,7 +521,7 @@ class Comb
521521 }
522522
523523 void DoYNR (int f, cline_t cbuf[in_y], double min = -1.0 ) {
524- int firstline = (linesout == in_y) ? 20 : 42 ;
524+ int firstline = (linesout == in_y) ? 20 : 38 ;
525525
526526 if (nr_y < min) nr_y = min;
527527
@@ -603,7 +603,7 @@ class Comb
603603 static int fcount = 0 ;
604604 // int fnum = 0;
605605
606- const int cysize = 242 ;
606+ const int cysize = 252 ;
607607 const int cxsize = in_x - 70 ;
608608
609609 uint16_t fieldbuf[in_x * cysize];
@@ -622,7 +622,7 @@ class Comb
622622 fieldbuf[(y * cxsize) + x] = cbuf[23 + field + (y * 2 )].p [70 + x].y ;
623623 }
624624 }
625- pic = Mat (242 , cxsize, CV_16UC1, fieldbuf);
625+ pic = Mat (252 , cxsize, CV_16UC1, fieldbuf);
626626 if (fcount) calcOpticalFlowFarneback (pic, prev[field], flow[field], 0.5 , 4 , 60 , 3 , 7 , 1.5 , (fcount > 1 ) ? OPTFLOW_USE_INITIAL_FLOW : 0 );
627627 prev[field] = pic.clone ();
628628 }
@@ -733,7 +733,7 @@ class Comb
733733 }
734734
735735 void AdjustY (int f, cline_t cbuf[in_y]) {
736- int firstline = (linesout == in_y) ? 20 : 42 ;
736+ int firstline = (linesout == in_y) ? 20 : 38 ;
737737 // remove color data from baseband (Y)
738738 for (int l = firstline; l < in_y; l++) {
739739 bool invertphase = (Frame[f].rawbuffer [l * in_x] == 16384 );
@@ -833,7 +833,7 @@ class Comb
833833 // buffer: in_xxin_y uint16_t array
834834 void Process (uint16_t *buffer, int dim = 2 )
835835 {
836- int firstline = (linesout == in_y) ? 20 : 42 ;
836+ int firstline = (linesout == in_y) ? 20 : 38 ;
837837 int f = (dim == 3 ) ? 1 : 0 ;
838838
839839 cerr << " P " << f << ' ' << dim << endl;
0 commit comments