Ask Your Question

error in cv::moments function

asked 2019-08-21 07:15:04 -0500

maya21 gravatar image

updated 2019-08-21 10:10:52 -0500

I dont know why I m getting this error error: (-210:Unsupported format or combination of formats) in function 'moments'

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2019-08-21 07:30:06 -0500

As you can see in the moments tutorial you need a contour, which is a vector of point elements as input format. My guess is you are doing something wrong there, but without code we can never be sure.

edit flag offensive delete link more



in addition documentation explains supported types

sturkmen gravatar imagesturkmen ( 2019-08-21 10:09:53 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-08-21 07:15:04 -0500

Seen: 32 times

Last updated: Aug 21