there is even no clear definition, what raw means here, it can be anything from plain pixels (in which format ?) to something nested with proprietary headers, -- you're all on your own here.
Mat m(height, width, type, pixelPointer);