public static List <Contour> FindContours(this Bitmap image)
        {
            if (image.PixelFormat != PixelFormat.Format8bppIndexed)
            {
                throw new NotSupportedException("Countour extractor can be applied to binary 8bpp images only");
            }

            BlobCounter bc = new BlobCounter(image);

            Blob[] blobs = bc.GetBlobs(image, true);

            return(blobs.Select(blob => new Contour(bc.GetBlobsContourPoints <SqareTracer>(blob))).ToList());
        }