| 1027 | } |
| 1028 | |
| 1029 | void 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 | } |
| 1036 | void 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++) |