How to extract 2D Mat from a 4D Mat
I have a Cv::Mat calle Prob
prob = deepLearningModel.forward();
This mat have 4 dimensions , and the size of each dimensions are tipically 1-1-nDetections-detectionsParameter
So I want is a 2D Mat based on the last dimensions , I mean nDetections*detectionsPameteter How can I achieve it??
Thanks.