Optimizing sobel and adding oopen mp