Is there any simple library I can use to load common format images? [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
开发者_如何学运维 Improve this questionI want a image loader library to help me load images (bmp, jpg, gif, png, and other common format) in Ubuntu using C. I'm writing a opengl program and want to load image to textures. Is there any good choice?
How about OpenCV? This open source project already realise many algorithm and support C/C++ and python. My classmates have done Object recognition project with OpenCV. easy to use~
For simply loading images, OpenCV would be quite an overkill. I strongly recommend DevIL/OpenIL, which is a simple to use and small library that supports many image formats. It's especially suited to OpenGL applications, as the syntax and programming style is heavily oriented on OpenGL's.
I'd recommend the SDL_Image library. Plenty of simple functions for loading and displaying images in there.
Check out the CAPI library. Lightweight and easy to use.
精彩评论