Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

mat from buffer

I try to capture video from frame grabber. What I did is I point raw data from buffer into Mat as follow:

myMat = Mat(Size (x, y), CV_8UC1, ImaqBuffer); Image below (picture 1) show what I got from myMat (image after change to Mat), compare to what I'd supposed to get (the image save direct from buffer) (picture 2).

image description

image description

How can I solve this?