Anyone knows or have some sample code where a user defined object ( for example of a class myClassX) can be added to a mat Object.
Example
Something like this -> But definitely the below program is not compiling. is there any way to store user defined objects in Mat Object?
MyClass m[2][2];
Mat M(2, 2, MyClass, m);
MyClass Obj;
MyClassObj.at<MyClass>(0, 1) = Obj;