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).
How can I solve this?