AForge.Net + mono

https://www.codeproject.com/Articles/9727/Image-Processing-Lab-in-C

댓글

  1. https://rdmilligan.wordpress.com/2015/05/31/getting-started-with-aforge-net/

    답글삭제
  2. using System;
    using System.Drawing;
    using System.Windows.Forms;
    using AForge;
    using AForge.Imaging.Filters;

    namespace tt
    {
    class MainClass
    {
    public static void Main(string[] args)
    {
    // load image
    var image = (Bitmap)Image.FromFile(@"/Users/kerb/lena.jpg");

    // apply filter
    var structuringElement = new short[5, 5] { { 1, 1, 1, 1, 1 }, { 1, 1, 1, 1, 1 }, { 1, 1, 1, 1, 1 }, { 1, 1, 1, 1, 1 }, { 1, 1, 1, 1, 1 } };

    Opening filter = new Opening(structuringElement);

    var filteredImage = filter.Apply(image);

    // save image
    filteredImage.Save(@"/Users/kerb/filtered_space.jpg");

    Console.Write("Good~!");
    }
    }
    }

    답글삭제

댓글 쓰기

이 블로그의 인기 게시물

Draw Circle on PictureBox when Button Click - Winform

2D FFT of Gray Image by AForge