Sample code using Sobel and/or Scharr OpenCV functions to make a simple Edge Detector Check the corresponding tutorial for more details