Example #1
0
 /// <summary>
 /// 腐蚀(来消除小且无意义的物体)
 /// </summary>
 /// <param name="image">二值化图片</param>
 /// <returns></returns>
 public static Bitmap ToErosion(Bitmap initBitmap)
 {
     return(EdgeDetector.ToErosion(initBitmap));
 }
Example #2
0
 /// <summary>
 /// 膨胀
 /// </summary>
 /// <param name="img"></param>
 /// <returns></returns>
 public static Bitmap ToSwell(Bitmap initBitmap)
 {
     return(EdgeDetector.ToSwell(initBitmap));
 }
Example #3
0
 /// <summary>
 /// 高帽
 /// </summary>
 /// <param name="initBitmap"></param>
 /// <returns></returns>
 public static Bitmap EdgeDetector_TopHap(Bitmap initBitmap)
 {
     return(EdgeDetector.ToTopHap(initBitmap));
 }
Example #4
0
 /// <summary>
 /// 骨架提取
 /// </summary>
 /// <param name="initBitmap"></param>
 /// <returns></returns>
 public static Bitmap EdgeDetector_Skeleton(Bitmap initBitmap)
 {
     return(EdgeDetector.ToSkeleton(initBitmap));
 }
Example #5
0
 /// <summary>
 /// 边界
 /// </summary>
 /// <param name="initBitmap"></param>
 /// <returns></returns>
 public static Bitmap EdgeDetector_Boundary(Bitmap initBitmap)
 {
     return(EdgeDetector.ToBoundary(initBitmap));
 }
Example #6
0
 /// <summary>
 /// 边缘检测Smoothed
 /// </summary>
 /// <param name="initBitmap"></param>
 /// <returns></returns>
 public static Bitmap EdgeDetector_Smoothed(Bitmap initBitmap)
 {
     return(EdgeDetector.Smoothed(initBitmap));
 }
Example #7
0
 /// <summary>
 /// 边缘检测Robert算子
 /// </summary>
 /// <param name="initBitmap"></param>
 /// <param name="Threshold"></param>
 /// <returns></returns>
 public static Bitmap EdgeDetector_Robert(Bitmap initBitmap, int Threshold = 80)
 {
     return(EdgeDetector.Robert(initBitmap, Threshold));
 }