OpenCVSharp 4.5 跑一遍OpenCV官方教程(全为手敲代码,如有雷同都是我的错)
官方OpenCV教程链接:https://docs.opencv.org/4.5.0/d5/db5/tutorial_laplace_operator.html
核心函数: Laplacian()
using System;
using OpenCvSharp;
namespace ConsoleApp1
{
class tutorial14 : ITutorial
{
public void Run()
{
// Declare the variables we are going to use
int kernel_size = 3;
int scale = 1;
int delta = 0;
MatType ddepth = MatType.CV_16S;
const string window_name = "Laplace Demo";
const string imageName = "I:\\csharp\\images\\lena.jpg";
using (Mat src = new Mat(imageName, ImreadModes.Color))
using (Mat src_gray = new Mat())
using(Mat dst

最低0.47元/天 解锁文章
3265

被折叠的 条评论
为什么被折叠?



