Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Getting JPG Image Data

Hello there, Is it possible that i can get the JPG data for a image? I know it's possible to get the Image Data, but what i want is the complete data with the header and everything as per JPG format.

So am expecting something like,

unsigned char* pJpgData = cvGetJpgData(img); // where "img" is a Iplimage* or CMat

Thanks

click to hide/show revision 2
retagged

updated 2014-02-27 12:27:37 -0600

berak gravatar image

Getting JPG Image Data

Hello there, Is it possible that i can get the JPG data for a image? I know it's possible to get the Image Data, but what i want is the complete data with the header and everything as per JPG format.

So am expecting something like,

unsigned char* pJpgData = cvGetJpgData(img); // where "img" is a Iplimage* or CMat

Thanks