【发布时间】:2011-01-03 03:53:58
【问题描述】:
我正在使用 OpenCV 库,我想在单独的函数中克隆图片,但我无法向函数发送地址
IplImage* image = cvLoadImage( path, CV_LOAD_IMAGE_GRAYSCALE ); // loading is ok
showFoundPoints(image); // -> here it shows errors
...
//我的功能
int showFoundPoints(IplImage*image)
{...}
我得到了这个构建错误:
错误:从IplImage*' to non-scalar typestd::string' 请求转换
我不明白为什么会有转换。看起来很简单,但我真的不知道该怎么办。
感谢您的帮助。
【问题讨论】: