Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

running imdecode on a buffer containing jpeg image

$
0
0
i am running imdecode on a buffer (string called str) containing a 4 channel jpeg. I do this: vector vectordata(str.begin(), str.end()); Mat mat = imdecode(vectordata, IMREAD_UNCHANGED); the mat object has the correct size in terms of rows and cols for the image but it is only full of white pixels (255 for all r,g,b and a values. Any help would be great here :)

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>