zoukankan      html  css  js  c++  java
  • show point on image

    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));
    	    	}
    
    		}
    

      

  • 相关阅读:
    12.4
    12.3
    学期总结
    12.20 期末考试总结
    12.18 准备
    12.17 CSS学习
    12.16 CSS学习
    12.15 CSS学习
    12.14 学习总结
    12.11 AJAX的基础知识
  • 原文地址:https://www.cnblogs.com/happyamyhope/p/8984429.html
Copyright © 2011-2022 走看看