Opencv:RGB到HSV(Opencv: RGB To HSV)
我编写了一个代码来对图像中的颜色进行分类。 我编译代码没有问题。 但是当我尝试执行它时,它会向我显示此错误。
OpenCV Error: Assertion failed (dst.data == dst0.data) in cvCvtColor, file /build/buildd/opencv-2.3.1/modules/imgproc/src/color.cpp, line 3175 terminate called after throwing an instance of 'cv::Exception' what(): /build/buildd/opencv-2.3.1/modules/imgproc/src/color.cpp:3175: error: (-215) dst.data == dst0.data in function cvCvtColor请问这意味着什么。
I write a code to classify color in an image. I compile the code without problem. But when i try to execute it it show me this error.
OpenCV Error: Assertion failed (dst.data == dst0.data) in cvCvtColor, file /build/buildd/opencv-2.3.1/modules/imgproc/src/color.cpp, line 3175 terminate called after throwing an instance of 'cv::Exception' what(): /build/buildd/opencv-2.3.1/modules/imgproc/src/color.cpp:3175: error: (-215) dst.data == dst0.data in function cvCvtColorAny help please on what that means.
最满意答案
这可能是指针问题。 这篇文章可能对你有帮助。
注意对象定义和cvCvtColor的用法
It is maybe the pointer problem. This post may help you.
Pay attention to the object definition, and the usage of cvCvtColor
更多推荐
发布评论