MCPcopy Create free account
hub / github.com/creatale/node-dv / setPaddingToZero

Method setPaddingToZero

deps/lswms/LSWMS.cpp:1029–1035  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1027}
1028
1029void LSWMS::setPaddingToZero(cv::Mat &img, int NN)
1030{
1031 cv::rectangle(img, cv::Point(0,0), cv::Point(img.cols-1, NN-1), cv::Scalar(0), CV_FILLED);
1032 cv::rectangle(img, cv::Point(0,0), cv::Point(NN-1, img.rows-1), cv::Scalar(0), CV_FILLED);
1033 cv::rectangle(img, cv::Point(0,img.rows-NN), cv::Point(img.cols-1, img.rows-1), cv::Scalar(0), CV_FILLED);
1034 cv::rectangle(img, cv::Point(img.cols-NN,0), cv::Point(img.cols-1, img.rows-1), cv::Scalar(0), CV_FILLED);
1035}
1036void LSWMS::drawLSegs(cv::Mat &img, std::vector<LSEG> &lSegs, cv::Scalar color, int thickness)
1037{
1038 for(unsigned int i=0; i<lSegs.size(); i++)

Callers

nothing calls this directly

Calls 2

rectangleFunction · 0.85
PointClass · 0.50

Tested by

no test coverage detected