spatialGradient: Remove an unnecessary branch in nosse code

This commit is contained in:
Seon-Wook Park 2015-06-26 17:26:21 +02:00
parent febd0f14c6
commit 8a21726ae5

View File

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