c++ - Data type assertion fail in OpenCV -
i trying use discrete fourier transform (dft) , using this link
i using gray scale image(8uc1) , when run program following error appears on screen :
opencv error: assertion failed (datatype<_tp>::channels == m.channels()) in cv:: mat_<float>::operator =
and breaks @ following line
mat planes[] = { mat_<float>(padded), mat::zeros(padded.size(), cv_32f) };
Comments
Post a Comment