title: Minimum along a dimension in a Multi Dimensional arrays C++
body: <p>I have a 3D matrix of size (100,100,50).</p>
  
  <pre><code> int sizes[]={100,100,50};
   Mat data_3d(3,sizes, CV_32FC1, cv::Scalar(0));
  </code></pre>
  
  <p>I want to find minimum  at every point along 3rd dimension to yield a 2D matrix.</p>
  
  <p>OpenCv supports min,max finding only for 2D matrix. Please help me know if there are ready functions for min,max for nth dimension.</p>