How to encode jpeg images with same huffman and quantization tables in OpenCV?
Hi, I'm pretty new to opencv and image processing, so please forgive me if im asking something really silly.
I would like to know if its possible to tell the encoder to use certain huffman table and quantization table when encoding jpeg, so that I can encode multiple images (of same size, component, etc.) with their headers interchangeable.
Basically I'm trying to send a image block by block after splitting it first. And it would be very convenient if they all share the same header so i dont need to send them multiple times. I assume that as long as I can specify the Huffman and Quantization tables they use, they would end up with the same header?
- Edit: I cant simply put the images in a single Mat and encode them as 1 big image, because whether or not to send the next one depends on the result of the previous image sent. So I have to send them separately.