add clamp and offset to result of sobel operations