简体   繁体   中英

C++ image library - finding pixels of a colour and making them white, everything else black

I'm looking for a C++ image processing library with which I would be able to find all pixels of a certain colour, with a user-specified tolerance, and colour them white and everything else in the picture black. Do you know of any?

If it were a C++ library, not one of plain C ones, which I'm allergic to, it would be a bonus.

You should check OpenCV. It has both C and C++ (based on OO principles) APIs.

OpenCV可以完成此任务以及更多!

Or perhaps a CImg - a wonderful header-only image manipulation library.

http://cimg.sf.net

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM