Calculation For The Sobel Test