Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
  • what is the operator >> doing?

    in c++, you can "overload" operators, to add new functionality. in the same way, you can write something to cout using cout << mystring , you can write to a filenode using fs << "K" << 17, and read it back using int n; fs["K"] >> n; (maybe you can think of it as a primitive database / key-value store)

  • there is a "const" ..

    this means, that the FileNode is not altered by reading from it.

you might want to take a look at the tutorial

  • What does this description mean?

    a FileNode can hold either a single item (a number, string, or Mat), or a list of such items

  • what is the operator >> doing?

    in c++, you can "overload" operators, to add new functionality. in the same way, you can write something to cout using cout << mystring , you can write to a filenode using fs << "K" << 17, and read it back using int n; fs["K"] >> n; (maybe you can think of it as a primitive database / key-value store)

  • there is a "const" ..

    this means, that the FileNode is not altered by reading from it.

you might want to take a look at the tutorial