Ask Your Question

L3Bee's profile - activity

2016-09-22 03:38:27 -0600 received badge  Famous Question (source)
2015-07-28 12:54:13 -0600 received badge  Notable Question (source)
2014-10-31 14:03:27 -0600 received badge  Popular Question (source)
2014-01-03 14:16:54 -0600 received badge  Nice Question (source)
2013-02-28 08:54:18 -0600 received badge  Student (source)
2013-02-28 08:38:54 -0600 commented answer Using external image data in a cv::Mat

I now wonder how I didn't see that when I was looking at it before. Thank you both.

2013-02-28 08:36:23 -0600 received badge  Scholar (source)
2013-02-28 08:36:18 -0600 received badge  Supporter (source)
2013-02-27 16:40:22 -0600 asked a question Using external image data in a cv::Mat

I am working on integrating some OpenCV functionality into an existing application that passes data around with pointers. What I want to do is wrap a Mat around the existing data, use some OpenCV functions, then let the data go when I'm done. However, the program is time-sensitive, and I would like to avoid making any copies of the data.

I see a few options. First, is there anything equivalent to Eigen's Map<arrayxxd> that does exactly what I want? Secondly, can I simply re-assign Mat's ptr, width, and height variables, then put them back when I'm done? Or is there a different option?

Thank you for your help.