/// Finds the edges on the input <paramref name="dx"/>, <paramref name="dy"/> and marks them in the output image edges using the Canny algorithm. The smallest of threshold1 and threshold2 is used for edge linking, the largest - to find initial segments of strong edges.
/// </summary>
/// <param name="dx">16-bit x derivative of input image</param>
/// <param name="dy">16-bit y derivative of input image</param>
/// <param name="edges">Image to store the edges found by the function</param>
/// <param name="threshold1">The first threshold</param>
/// <param name="threshold2">The second threshold.</param>
///<param name="l2Gradient">a flag, indicating whether a more accurate norm should be used to calculate the image gradient magnitude ( L2gradient=true ), or whether the default norm is enough ( L2gradient=false ).</param>
/// The function tests whether the input contour is convex or not. The contour must be simple, that is, without self-intersections. Otherwise, the function output is undefined.