template<int ROWS, int COLS, int SRC_T, int DST_T>
void hls::Duplicate( hls::Mat<ROWS, COLS, SRC_T>& src,
                     hls::Mat<ROWS, COLS, DST_T>& dst1,
                     hls::Mat<ROWS, COLS, DST_T>& dst2 );


  • src – the input image.
  • dst1 – first output image.
  • dst2 – second output image.


Copy the input image src to two output images dst1 and dst2, for divergent point of two data paths.
Image data must be stored in src, the image data of dst1 and dst2 must be empty before invocations. Invoking this function will consume the data in src, and filling the image data of dst1 and dst2.
src,dst1 and dst2must have the same size and number of channels.

OpenCV reference