Valeo interview question

Write a C++ code to implement Canny edge detector.