Convert bmp to linear jpeg [closed]
Hello,
I want to convert a bmp image to jpeg. But I want to be able to change the parameters of the jpeg image that is created. I want to use linear gamma, because i want to get linear jpeg in the end. Is there a function that does this in C++?
Thanks
OpenCV uses file extension do encode/decode image file
Are you sure that the jpg image in the end will be LINEAR jpg? Because I already found a way to convert it but my bmp image is 80Mb and the jpg is only 2Mb
with make all modification to img I would say make gamma correction / linearisation. After this you can save as you want. For gamma correction See this or this
@sadasir, i've got the weird feeling, you're looking at the wrong library for this.
BTW, I would use the params optional parameter of imwrite and set the JPG compression to a bare minimum ... more info here!