error: too few arguments to function ‘cvSaveImage’

Dec 01 2011 Published under Programming | Tags:

Problem:
opencv 2.1
In test program xxx.c

...
  cvSaveImage("out.png", imagen);
...

compile error: …error: too few arguments to function ‘cvSaveImage

Solution:

...
  cvSaveImage("out.png", imagen, 0);
...

Error due to Standard C does not support default arguments
ref: http://stackoverflow.com/questions/1736594/error-too-few-arguments-to-function

Tags:

No responses yet

Comments are closed at this time.

Login