Jump to content

Need to do some simple image analysis

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
dmehling

dmehling

    Newbie

  • Members
  • Pip
  • 8 posts
I am new to C++, so bear with me. I am wanting to develop a simple program to analyze the color values of an image (format doesn't matter, just what's easiest). I want the program to determine the numerical value of the colors and save those values in a sequential arrangement.

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
.bmp will probably be the easiest format to decode, but you'll really have to decide on the image format, as each one is quite different.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
dmehling

dmehling

    Newbie

  • Members
  • Pip
  • 8 posts
Okay BMP it is. But where do I go from now? What is the first step for developing such a program?

#4
TkTech

TkTech

    The Crazy One

  • Moderators
  • 1,396 posts
I've made a well-commented example for you here. Its by no means complete, but it is a starting point and should get you going.

#5
speculatius

speculatius

    Newbie

  • Members
  • PipPip
  • 25 posts
Or you can use some library for image processing. It will do lot of work for you. This one looks good: cimg.sourceforge.net (wow, I am not able to post regular links so far !?!). Have a look on basic tutorial: cimg.sourceforge.net/reference/group__cimg__tutorial.html