template<int ROWS, int COLS, int SRC1_T, int SRC2_T, int DST_T>
void hls::Max( hls::Mat<ROWS, COLS, SRC1_T>& src1,
               hls::Mat<ROWS, COLS, SRC2_T>& src2,
               hls::Mat<ROWS, COLS, DST_T>& dst );


  • src1 – first input image.
  • src2 – second input image.
  • dst – the output image.


Calculates per-element maximum of two input images src1 and src2 and save the result indst.
Image data must be stored in src1 and src2, the image data of dst must be empty before invocations. Invoking this function will consume the data in src1 and src2, and filling the image data of dst.
src1 and src2 must have the same size and number of channels.dstmust have the same size and number of channels as the inputs

OpenCV reference

cvMax, cv::max