File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1566,9 +1566,9 @@ class Bayer2RGB_EdgeAware_T_Invoker :
1566
1566
int x = 1 ;
1567
1567
if (start_with_green)
1568
1568
{
1569
- D[blue<<1 ] = (S[-sstep] + S[sstep]) >> 1 ;
1569
+ D[blue<<1 ] = (S[-sstep] + S[sstep] + 1 ) >> 1 ;
1570
1570
D[1 ] = S[0 ];
1571
- D[2 -(blue<<1 )] = (S[-1 ] + S[1 ]) >> 1 ;
1571
+ D[2 -(blue<<1 )] = (S[-1 ] + S[1 ] + 1 ) >> 1 ;
1572
1572
D += dcn;
1573
1573
++S;
1574
1574
++x;
@@ -1584,7 +1584,7 @@ class Bayer2RGB_EdgeAware_T_Invoker :
1584
1584
{
1585
1585
D[0 ] = S[0 ];
1586
1586
D[1 ] = (std::abs (S[-1 ] - S[1 ]) > std::abs (S[sstep] - S[-sstep]) ? (S[sstep] + S[-sstep] + 1 ) : (S[-1 ] + S[1 ] + 1 )) >> 1 ;
1587
- D[2 ] = (S[-sstep-1 ] + S[-sstep+1 ] + S[sstep-1 ] + S[sstep+1 ]) >> 2 ;
1587
+ D[2 ] = (S[-sstep-1 ] + S[-sstep+1 ] + S[sstep-1 ] + S[sstep+1 ] + 2 ) >> 2 ;
1588
1588
1589
1589
D[3 ] = (S[0 ] + S[2 ] + 1 ) >> 1 ;
1590
1590
D[4 ] = S[1 ];
You can’t perform that action at this time.
0 commit comments