zoukankan      html  css  js  c++  java
  • opencv polylines

    opencv  polylines

    void polylines( InputOutputArray _img, const Point* const* pts, const int* npts, int ncontours, bool isClosed,
                    const Scalar& color, int thickness, int line_type, int shift )
    {
        CV_INSTRUMENT_REGION();
    
        Mat img = _img.getMat();
    
        if( line_type == CV_AA && img.depth() != CV_8U )
            line_type = 8;
    
        CV_Assert( pts && npts && ncontours >= 0 &&
                   0 <= thickness && thickness <= MAX_THICKNESS &&
                   0 <= shift && shift <= XY_SHIFT );
    
        double buf[4];
        scalarToRawData( color, buf, img.type(), 0 );
    
        for( int i = 0; i < ncontours; i++ )
        {
            std::vector<Point2l> _pts(pts[i], pts[i]+npts[i]);
            PolyLine( img, _pts.data(), npts[i], isClosed, buf, thickness, line_type, shift );
        }
    }

    ############################

    QQ 3087438119
  • 相关阅读:
    FormData的使用
    数据绑定
    DOM的映射机制
    leetcode750
    leetcode135
    leetcode41
    leetcode269
    leetcode253
    leetcode42
    leetcode48
  • 原文地址:https://www.cnblogs.com/herd/p/15419093.html
Copyright © 2011-2022 走看看