Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cvLoadImage does not work like printf! If you want to create a string using variables, use a stringstream. Then use the <<-operator to create the string you want.

And don't use the old C interface! Use imread, which expects a string. The stringstream class has a str() method which will give you the string you want.