Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Is there already a way to add custom metadata to cv::Mat or cv::UMat?

I'm building a framework that builds a image processing pipeline and would like to track cv::Mat or cv::UMat objects while they are processed. Especially, I would like to assign:

  • a kind of identifying "serial number" or "frame index"
  • one or more time stamps
  • maybe also an id of the origin

I don't want to re-invent the wheel. Is there already some mechanism implemented to do this or do I need to implement a wrapper object that holds those additional information?

Is there already a way to add custom metadata to cv::Mat or cv::UMat?

I'm building a framework that builds a an image processing pipeline and would like to track cv::Mat or cv::UMat objects while they are processed. Especially, I would like to assign:

  • a kind of identifying "serial number" or "frame index"
  • one or more time stamps
  • maybe also an id of the origin

I don't want to re-invent the wheel. Is there already some mechanism implemented to do this or do I need to implement a wrapper object that holds those additional information?