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

后端 未结 9 2353
北荒
北荒 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 18:41

    There is no standard library in the C-standard to read the file-formats.

    However, most programs, especially on the linux platform use the same library to decode the image-formats:

    For jpeg it's libjpeg, for png it's libpng.

    The chances that the libs are already installed is very high.

    http://www.libpng.org

    http://www.ijg.org

提交回复
热议问题