Working with images in C++ or C

后端 未结 5 889
北荒
北荒 2021-02-06 12:24

The first thing is that I am a beginner. Okay?

I\'ve read related answers and questions, but please help me with this problem:

How can I open an JPEG image file

5条回答
  •  囚心锁ツ
    2021-02-06 12:35

    There are many good libraries for working with images in C and C++, none of which is clearly superior to all others. OpenCVwiki, project page has great support for some of these tasks, while ImageMagickwiki, project page is good at others. The JPEG group has its own implementation of JPEG processing functions as well. These are probably good resources to start from; the API documentation can guide you more specifically on how to use each of these.

    As for whether C or C++ libraries are bound to be faster, there's no clear winner between the two. After all, you can always compile a C library in C++. That said, C++ libraries tend to be a bit trickier to pick up because of the language complexity, but much easier to use once you've gotten a good feel for the language. (I am a bit biased toward C++, so be sure to consider the source). I'd recommend going with whatever language you find easier for the task; neither is a bad choice here, especially if performance is important.

    Best of luck with your project!

提交回复
热议问题