how can i convert datat to matrix ?
Hi My data is actually a image. Here is stored.
char* img; int size;
how can i convert this img with size to matrix? thanks.
Hi My data is actually a image. Here is stored.
char* img; int size;
how can i convert this img with size to matrix? thanks.
Asked: 2015-12-10 09:47:37 -0600
Seen: 111 times
Last updated: Dec 10 '15
how can merge the video data to a matrix? [closed]
GpuMat submatrix out of GpuMat object?
multiply two points and matrix
different step size output for cv::Mat::step1
How to operate on each pixel of a cv2.cv.Mat with a 3 x 3 matrix?
missing cv::Mat::zeros(int ndims, const int* sz, int type)
take a look at http://answers.opencv.org/question/8202
if the given link has the answer of your question then you can delete this question.
To map an external buffer to a
cv::Mat
as suggested by @sturkmen you need of full size means you need to know rows and cols. Otherwise you can map the buffer as a col vectorsize x 1
or a row vector1 x size
It's funny but this question is same of this other... are you same user too ?