Populate NvBufSurface from cv::Mat

Please follow this thread to get the idea of what I actually want to achieve.

I pass in a frame with n bboxes/object_metas. For each of those bboxes I want to create another NvBufSurface or finally GstInferFrame because I want to execute inference on those frames, not on the original ones.

Hope this is somehow clear? If not i’ll elaborate.