public override Bitmap ApplyFilter(Bitmap img) { SimpleSkeletonization filterSE = new SimpleSkeletonization(); this.imgThinning = filterSE.Apply(img); return(this.imgThinning); }
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)); }
private void thinningToolStripMenuItem_Click(object sender, EventArgs e) { SimpleSkeletonization filter = new SimpleSkeletonization(); Image = filter.Apply(Image); }