Mat inputImage = new Mat("input.jpg"); Mat cornersImage = new Mat(); CvInvoke.CornerHarris(inputImage, cornersImage, 2);
Mat inputImage = new Mat("input.jpg"); Mat cornersImage = new Mat(); CvInvoke.CornerHarris(inputImage, cornersImage, 2, 3, 0.04);This is similar to Example 1, but with additional parameters passed to CornerHarris() function. The second parameter '3' specifies the size of the Sobel edge detection kernel used for Harris algorithm, and the third parameter '0.04' specifies the Harris parameter k. In summary, CvInvoke CornerHarris function implementation for C# belongs to the Emgu.CV library. This function can be used to detect corners in an image using the Harris corner detection algorithm. The parameters of this function are Input Image, Output Corners Image, and Kernel size and Harris parameter k.