I am using python-openCV. When using the Sobel edge detection I get the following assertion error:
src.size() == dst.size() && src.channels() == dst.channels() && ((src.depth() == CV_8U && (dst.depth() == CV_16S || dst.depth() == CV_32F)) || (src.depth() == CV_32F && dst.depth() == CV_32F))
I create the dest
using CreateImage()
and it has same size and channels as src
. Also the depth of both src and dest is IPL_DEPTH_8U. I also tried loading image using LoadImageM()
so that the constants are of kind CV_*
but that didn't help.
I also happen to find out that IPL_DEPTH_8U == CV_8U
is false
.