Advertisement

EmguCV 填充操作 带角度矩形

阅读量:
复制代码
复制代码
                 //想使用提取的最小外接矩形生成 Mask,待用。怎样填充RotatedRect区域

    
                 //找轮廓
    
                 VectorOfVectorOfPoint con = new VectorOfVectorOfPoint();
    
                 CvInvoke.FindContours(opened, con, null, RetrType.Ccomp, ChainApproxMethod.ChainApproxSimple);
    
                 Image<Gray, byte> drawim = new Image<Gray, byte>(sizePart);
    
                 for (int i = 0; i < con.Size; i++)
    
                 {
    
                     if (con[i].Size > 100)
    
                     {
    
                         //外接矩形
    

全部评论 (0)

还没有任何评论哟~