show point on image...
for ( int i = 0; i < probp.size(); i++ ) { cv::Point pt = probp[i]; Distance pd = getDistance(pt.x, pt.y); pdist.push_back(pd); //std::cout << "pd-latteral: " << pd.x_dis << " ----- pd-longitudinal: " << pd.y_dis << std::endl; if (plabel[i] == 1)//-barrier { cv::circle(orig, pt, 3, cv::Scalar(240, 32, 160), -1); // //cv::putText(orig, std::to_string(i), pt, CV_FONT_NORMAL, 0.1, cv::Scalar(255, 255, 255)); } else if (plabel[i] == 0)//-undifined { cv::circle(orig, pt, 3, cv::Scalar(255, 255, 0), -1); // //cv::putText(orig, std::to_string(i), pt, CV_FONT_NORMAL, 0.1, cv::Scalar(255, 255, 255)); } }