Ask Your Question

Revision history [back]

How to take out certain 2D matrix from 3D Mat matrix?

I have created a 3D matrix like this: int sizes[] = { 3, vec.size().height, vec.size().width }; Mat *zeta = new Mat(3, sizes, CV_64FC1, cv::Scalar(0)); now i d like to get zeta[0,:,:] for example I searched online, but have not found any function to do this. Anyone has the idea? Thanks!