Applies sobel edge detection in a 3D volume (2D slices individually)