mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 22:44:02 +08:00
spatialGradient: Remove an unnecessary branch in nosse code
This commit is contained in:
parent
febd0f14c6
commit
8a21726ae5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user