point 问题
2017-10-20 22:09
83 查看
//【4】依次在图中绘制出每条线段
for( size_t i = 0; i < lines.size(); i++ )
{
float rho = lines[i][0], theta = lines[i][1];
Point pt1, pt2;
double a = cos(theta), b = sin(theta);
double x0 = a*rho, y0 = b*rho;
pt1.x = cvRound(x0 + 1000*(-b));
pt1.y = cvRound(y0 + 1000*(a));
pt2.x = cvRound(x0 - 1000*(-b));
pt2.y = cvRound(y0 - 1000*(a));
line( dstImage, pt1, pt2, Scalar(55,100,195), 1, CV_AA);
}
线条如何写的?
for( size_t i = 0; i < lines.size(); i++ )
{
float rho = lines[i][0], theta = lines[i][1];
Point pt1, pt2;
double a = cos(theta), b = sin(theta);
double x0 = a*rho, y0 = b*rho;
pt1.x = cvRound(x0 + 1000*(-b));
pt1.y = cvRound(y0 + 1000*(a));
pt2.x = cvRound(x0 - 1000*(-b));
pt2.y = cvRound(y0 - 1000*(a));
line( dstImage, pt1, pt2, Scalar(55,100,195), 1, CV_AA);
}
线条如何写的?
相关文章推荐
- 怎样在Sharepoint webpart中写 Repeat 、datalist 、datagrid ,读懂这段代码应该可以解决这类问题了
- 设为form认证后,用SharePoint Designer编辑的问题
- 【C++】C++中的Sequence Point,构造函数等问题
- Moss/SharePoint 常见问题以及解决方法(持续更新中)
- Sharepoint Visual Studio 开发工作流 LookUpSPListItemId 的问题
- jdk的设置及安装android studio提示does not point to a valid jvm问题
- 一步一步SharePoint 2007之二十二:完美解决实现Form认证后无法再用SharePoint Designer编辑网站的问题
- log file switch (checkpoint incomplete)的问题定位
- ECharts markPoint显示问题
- SharePoint Portal Server无法删除的问题
- 运维故障解析:C++库问题导致LAMP运行异常,Floating Point Exception
- Silverlight Blueprint for SharePoint的版本问题
- Net 访问 SharePoint Rest 报错问题
- IIS看不到站点,以及修复 SharePoint HRESULT:0x80070094 问题
- sharepoint Rss webpart 代理proxy 问题 [转自飞身社区]
- GCC版本问题引发的floating point exception
- maven 打包时,jar should not point at files within the project directory 问题解决
- Perhaps JAVA_HOME does not point to the JDK问题 (JDK1.6.0+ Tomcat5.0 时出现)
- NullPoint问题,有时候会引起大错误
- sharepoint Rss webpart 代理proxy 问题