opencv 椭圆综合演练部分,下面程序总是提示错误,几个函数找不到标识符,求解。。。。

include

include

include

define WINDOW_NAME1 “【绘制图1】”

define WINDOW_NAME2 “【绘制图2】”

define WINDOW_WIDTH 600

int main(void)
{
Mat atomImage =Mat::zeros(WINDOW_WIDTH,WINDOW_WIDTH,CV_8UC3);
Mat rookImage =Mat::zeros(WINDOW_WIDTH,WINDOW_WIDTH,CV_8UC3);

DrawEllipse(atomImage,90);    
DrawEllipse(atomImage,0);
DrawEllipse(atomImage,45);
DrawEllipse(atomImage,-45);


DrawFilledCircle(atomImage,Point(WINDOW_WIDTH/2,WINDOW_WIDTH/2));

DrawPolygon (rookImage);

rectangle(rookImage,
    Point (0,7*WINDOW_WIDTH/8),

Point(WINDOW_WIDTH,WINDOW_WIDTH),
Scalar(0,255,255),8);

DrawLine (rookImage,Point(0,15*WINDOW_WIDTH/16),
    Point(WINDOW_WIDTH,15*WINDOW_WIDTH/16));
DrawLine (rookImage,Point(WINDOW_WIDTH/4,7*WINDOW_WIDTH/8),
    Point(WINDOW_WIDTH/4,WINDOW_WIDTH));
DrawLine (rookImage,Point(WINDOW_WIDTH/2,7*WINDOW_WIDTH/8),
    Point(WINDOW_WIDTH/2,WINDOW_WIDTH));
DrawLine (rookImage,Point(3*WINDOW_WIDTH/4,7*WINDOW_WIDTH/8),
    Point(3*WINDOW_WIDTH/4,WINDOW_WIDTH));


imshow (WINDOW_NAME1,atomImage);
moveWindow(WINDOW_NAME1,0,200);
imshow(WINDOW_NAME2,rookImage);
moveWindow(WINDOW_NAME2,WINDOW_WIDTH,200);

waitKey(0);
return(0);

}

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值