Ejemplo n.º 1
0
        public override Bitmap ApplyFilter(Bitmap img)
        {
            SimpleSkeletonization filterSE = new SimpleSkeletonization();

            this.imgThinning = filterSE.Apply(img);
            return(this.imgThinning);
        }
Ejemplo n.º 2
0
        public mErosionSkeleton(int background, int foreground)
        {
            Background = background;
            Foreground = foreground;

            BitmapType = mFilter.BitmapTypes.None;

            Effect            = new SimpleSkeletonization();
            Effect.Background = (byte)Background;
            Effect.Foreground = (byte)Foreground;

            filter = Effect;
        }
        public Bitmap Skeletonization(Bitmap bitmap)
        {
            SimpleSkeletonization filter = new SimpleSkeletonization(255, 0);

            return(filter.Apply(bitmap));
        }
Ejemplo n.º 4
0
        private void thinningToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SimpleSkeletonization filter = new SimpleSkeletonization();

            Image = filter.Apply(Image);
        }