Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Assertion failed (depth == 5 || depth == 6)

means, you need float or double data as input, not uchar.

src.convertTo(src, CV_32F);
log(src, dst);
dst.convertTo(dst, CV_8U);