Skip to content

Instantly share code, notes, and snippets.

@cwellsx
cwellsx / Pixels.cs
Created December 19, 2016 14:05
Moore Neighbor Contour Tracing Algorithm in C#
// This is a conversion to C# of the algorithm which is implemented at:
// https://www.eriksmistad.no/moore-neighbor-contour-tracing-algorithm-in-c/
// http://www.imageprocessingplace.com/downloads_V3/root_downloads/tutorials/contour_tracing_Abeer_George_Ghuneim/moore.html
using System;
using System.Collections.Generic;
using System.Linq;
// The System.Drawing namespace defines types like Bitmap and Point
using System.Drawing;
using System.Drawing.Imaging;