I am wondering if OpenCV Mat default constructor already allocates the memory? as indicated in doc
> These are various constructors that form a matrix. As noted in the Automatic Allocation of the Output Data, often the default constructor
> is enough, and the proper matrix will be allocated by an OpenCV
> function.
Does this mean that the deallocation happening at the end of my program is proper. Is that correct?
Actually, I am having a (core dump) error at the memory deallocation phase at program's end. My initial code introduces an OpenCV Mat i.e. Mat A without initialize it which creates the error. I fixed this error by using initialization i.e. A = Mat::zeros(...)
I want to confirm my previous doubt. If it is true, it is quite inconvenient to have to initialize Mat every time it is declared
Sorry for my bad explanation! please respond to me if I am not clear enough