Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Can I perform nested operations with the Mat object?

I am really new to OpenCV and I started out using the C structures. I had to release the images when I was done with them and I could not nest the operations I performed on the image. Now I am using Cv::Mat and I was wondering if I could do the following code with not memory problems:

Mat image;
transpose(imread( argv[1], 0 ),image);

Will this work without leaving any images stuck in the memory. I am also pretty new to C++ coming from a Java background so I appreciate any answers. Thank you!