Template Function xf::cv::letterbox

Function Documentation

template<int INTERPOLATION_TYPE, int TYPE, int SRC_ROWS, int SRC_COLS, int DST_ROWS, int DST_COLS, int NPC, int MAX_DOWN_SCALE, int INSERT_VAL>
void xf::cv::letterbox(xf::cv::Mat<TYPE, SRC_ROWS, SRC_COLS, NPC> &_src, xf::cv::Mat<TYPE, DST_ROWS, DST_COLS, NPC> &_dst, int rows_out_resize, int cols_out_resize)
Template Parameters
  • INTERPOLATION_TYPE – interpolation type

  • TYPE – input and ouput type

  • SRC_ROWS – rows of the input image

  • SRC_COLS – cols of the input image

  • DST_ROWS – rows of the output image

  • DST_COLS – cols of the output image

  • NPC – number of pixels processed per cycle

  • MAX_DOWN_SCALE – maximum downscale parameter

  • INSERT_VAL

Parameters
  • _src – input image

  • _dst – output image

  • rows_out_resize – rows value after resize

  • cols_out_resize – cols value after resize