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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -