seperate to 4 threads to speed up sobel operator.