Below is an usage of canny algorithm in c++. Note that the image is first converted to grayscale image, then Gaussian filter is used to reduce the noise in the image. Then Canny algorithm is used for edge detection.
// CannyTutorial.cpp : Defines the entry point for the console application.
// En...