Re: Ho to interpret this?
Quote:
First of all, I don't understand what it means.
That is what documentation is for:
http://opencv.willowgarage.com/docum...tructures.html
There you can see what CvScalar is.
Quote:
I don't know how "{" characters are interpreted.
Google for "initializing structs C".
the code you posted should not compile beacuse of the '\' escape.
Since the documentation of CvScalar says its a struct that holds doubles, the code is again, at best strange.
This will probably will compile, but I didn't test it (probably it would be beter to change the ints to doubles by adding a decimal point '.0':
Code:
const CvScalar colors[] = {{0.0,0.0,255.0,0.0},{0.0,255.0,0.0,0.0},
{0.0,255.0,255.0,0.0},{255.0,255.0,0.0,0.0}} ;
Re: Ho to interpret this?
Hi,
The problem is that I don't understand the "cvdefCpp" text befor "=". Maybe it's a simple error because removing it the program compiles and works.
Thanks,
Re: Ho to interpret this?
It's a typo. It seems to be a LaTex command as it can be seen often in this file.