Convert IplImage into a JPEG without using CvSaveImage in OpenCV


I wish to convert an IplImage into a JPEG image in the memory (in order to stream it as M-JPEG frame over sockets) . I know I can use CvSaveImage for this, that creates a jpeg file, I read it again and then stream it over the network. I wish to avoid this extra disk write-read ops for faster operation. Any insights ?

3/30/2009 3:56:08 PM

Check out this question. I am not sure how you can use the solution in C#, but maybe it can help.

5/23/2017 11:44:36 AM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow