How do I read JPEG and PNG pixels in C++ on Linux?

后端 未结 9 2363
北荒
北荒 2020-12-04 18:34

I\'m doing some image processing, and I\'d like to individually read each pixel value in a JPEG and PNG images.

In my deployment scenario, it would be awkward for me

9条回答
  •  借酒劲吻你
    2020-12-04 19:05

    If speed is not a problem you can try LodePNG that take a very minimalist approach to PNG loading and saving.

    Or even go with picoPNG from the same author that is a self-contained png loader in a function.

提交回复
热议问题