hls::MinMaxLoc


Synopsis


1. without mask:
template<int ROWS, int COLS, int SRC_T, typename P_T>
void hls::MinMaxLoc( hls::Mat<ROWS, COLS, SRC_T>& src,
                     P_T* min_val,
                     P_T* max_val,
                     hls::Point& min_loc,
                     hls::Point& max_loc );
2. with mask:
template<int ROWS, int COLS, int SRC_T, typename P_T>
void hls::MinMaxLoc( hls::Mat<ROWS, COLS, SRC_T>& src,
                     P_T* min_val,
                     P_T* max_val,
                     hls::Point& min_loc,
                     hls::Point& max_loc,
                     hls::Mat<ROWS, COLS, HLS_8UC1>& mask );

Parameters

  • src – the input image.
  • min_val – pointer to the output minimum value.
  • max_val – pointer to the output maximum value.
  • min_loc – the output point of minimum location in input image.
  • max_loc – the output point of maximum location in input image.
  • mask – the operation mask, 8-bit single channel image, that specifies elements of the src image to be found.

Description


Finds the global minimum and maximum and their locations in input image src.
Image data must be stored in src(if computes with mask, mask must have data stored). Invoking this function will consume the data in src(if computes with mask, the data of mask will be also consumed).
min_val and max_val must have the save data type. src and mask must have the same size.

OpenCV reference


cvMinMaxLoc, cv::minMaxLoc