This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |