spatialGradient: Remove an unnecessary branch in nosse code

pull/4139/head
Seon-Wook Park 10 years ago
parent febd0f14c6
commit 8a21726ae5
  1. 2
      modules/imgproc/src/spatialgradient.cpp

@ -301,9 +301,7 @@ void spatialGradient( InputArray _src, OutputArray _dx, OutputArray _dy,
for ( ; j < W; j++ ) for ( ; j < W; j++ )
{ {
j_p = j - 1;
j_n = j + 1; j_n = j + 1;
if ( j_p < 0 ) j_p = j + j_offl;
if ( j_n >= W ) j_n = j + j_offr; if ( j_n >= W ) j_n = j + j_offr;
// Get values for next column // Get values for next column

Loading…
Cancel
Save