OpenCV  3.4.4
Open Source Computer Vision
samples/cpp/edge.cpp

This program demonstrates usage of the Canny edge detector

Check the corresponding tutorial for more details