namespace helloOpenCv
{
class Program
{
static void Main(string[] args)
{
//OpenCvSharp的HelloWorld----初识OpenCv
Mat zx61 = new Mat("./data/test.jpg",ImreadModes.Grayscale);//从文件中加载一张图片,打开形式为灰阶图
Mat zx6161 = new Mat();//建立一个空白图布
Cv2.Canny(zx61, zx6161, 50, 200);//边缘检测
using (new Window("zx61 image", zx61))
using (new Window("zx6161 image", zx6161))
{
Cv2.WaitKey();//等待用户按键
}