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

command line - Use qwinsta in PowerShell ISE -

java - Incorrect order of records in M-M relationship in hibernate -

Python website log in: BIG-IP can not find session information in the request -