To facilitate local memory allocation on FPGA devices, the Vitis Vision
library functions are provided in templates with compile-time
parameters. Data is explicitly copied from cv::Mat
to xf::cv::Mat
and is stored in physically contiguous memory to achieve the best
possible performance. After processing, the output in xf::cv::Mat
is
copied back to cv::Mat
to write it into the memory.