I'm an embedded systems programmer, and have done extremely limited Windows development. That said I am firm about sticking to C++ since it's more familiar than C#, and trying to figure out a new language is not an option in the time frame available.
The project I'm working on right now is a simple console application for lab use. The I/O and loops are done, the part I'm having trouble with is the image processing. What I need to do is scan through the image pixel by pixel and compare the colors against some threshold values. The image will be a sample on a green screen, and we'll be looking at the differences in colors of the sample. The comparison logic is easy, but after spending several hours on Google and downloading a couple libraries, I'm convinced there is just too much information on image processing.
Is there an image processing library out there that will allow me to load an image into memory, scan through pixel by pixel, load the color bytes with a single function call, and not make my head explode?
For C++, there's an ImageMagick toolset (it's open-source). The minimalistic (one-file only) library: CImg.
For sophisticated processing try OpenCV.
If all you really need is to get an access to raw bytes (loaded from some common file format), then FreeImage is also an option.
For C#, AForge as a starting point.
For simple console processing I would opt to CImg (the compile time may be disappointing though).
I haven't tried it myself, but if you're okay with a C-style interface, ccv has been making the rounds recently as a modern version of OpenCV.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With