I would like to define a class with a matrix as an member:

class Foo {

public:

  Mat A;
};

I would expect that when an instance of Foo is created, A should be
initialized, just as it would be if it were declared as ordinary variable in
C:
int main (int argc,char **args) {
  Mat A;
...

However, when an instance of Foo is created, A is initialized to NULL.  How
can I get it to initialize properly?


Reply via email to