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.