_sy = ndimage.sobel(_img, axis=1, mode='reflect') - \
        ndimage.sobel(_rec, axis=1, mode='reflect')