Opencv   fillConvexPoly

 

void fillConvexPoly( InputOutputArray _img, const Point* pts, int npts,
                     const Scalar& color, int line_type, int shift )
{
    CV_INSTRUMENT_REGION();

    Mat img = _img.getMat();

    if( !pts || npts <= 0 )
        return;

    if( line_type == CV_AA && img.depth() != CV_8U )
        line_type = 8;

    double buf[4];
    CV_Assert( 0 <= shift && shift <=  XY_SHIFT );
    scalarToRawData(color, buf, img.type(), 0);
    std::vector<Point2l> _pts(pts, pts + npts);
    FillConvexPoly( img, _pts.data(), npts, buf, line_type, shift );
}

 

 

 

 

 

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

相关文章:

  • 2021-05-14
  • 2021-05-12
  • 2021-10-17
猜你喜欢
  • 2021-12-16
  • 2022-12-23
  • 2021-11-07
  • 2021-09-06
  • 2022-01-20
  • 2022-02-07
相关资源
相似解决方案