Advertisement

EmguCV中使用形态学变换生成自定义结构元素

阅读量:
复制代码
    Mat close_33 = CvInvoke.GetStructuringElement(ElementShape.Ellipse, new System.Drawing.Size(3, 3), new System.Drawing.Point(-1, -1));
    
    AI写代码cs
复制代码
     public enum ElementShape

    
     {
    
     //
    
     // 摘要:
    
     //     A rectangular element.
    
     Rectangle = 0,
    
     //
    
     // 摘要:
    
     //     A cross-shaped element.
    
     Cross = 1,
    
     //
    
     // 摘要:
    
     //     An elliptic element.
    
     Ellipse = 2,
    
     //
    
     // 摘要:
    
     //     A user-defined element.
    
     Custom = 100
    
     }

全部评论 (0)

还没有任何评论哟~