Skip to content

Instantly share code, notes, and snippets.

@elbruno
Created November 12, 2020 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elbruno/58d2b4543d6cb27fbfbb6938ae6a165f to your computer and use it in GitHub Desktop.
Save elbruno/58d2b4543d6cb27fbfbb6938ae6a165f to your computer and use it in GitHub Desktop.
opencvsharpnet5Fasteffect.cs
public Mat applyEffect(Mat image)
{
var newImage = new Mat();
Cv2.CvtColor(image, newImage, ColorConversionCodes.BGR2GRAY, 0);
KeyPoint[] keypoints = Cv2.FAST(newImage, 50, true);
foreach (KeyPoint kp in keypoints)
newImage.Circle((Point)kp.Pt, 3, Scalar.Red, -1, LineTypes.AntiAlias, 0);
return newImage;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment