user63898
user63898

Reputation: 30963

How to get into image manipulation programming?

How can I do simple thing like manipulate image programmatically ? ( with C++ I guess .. ) jpgs/png/gif .....

Upvotes: 3

Views: 2712

Answers (4)

Will
Will

Reputation: 75683

Magick++ is a C++ API for the excellent ImageMagick library.

An advantage of ImageMagick is that it can be used from the command-line and a bunch of popular scripting and compiled languages too, and some of those might be more accessible to you than C++.

Upvotes: 2

Mr Fooz
Mr Fooz

Reputation: 111986

Depending on how fancy you want to get, you may want to look at OpenCV. It's a computer vision library that has functions ranging from reading and writing images to image processing to advanced things like object detection.

Upvotes: 2

Sorin
Sorin

Reputation: 2288

Using .NET you have two options:

  1. GDI+ from System.Drawing namespace (Bitmap class)
  2. WPF engine wich can do a lot of things

If you want low level processing you can use unsafe code and pointers.

A Bitmap or Image is just a big array of bytes. You need to learn:

  • what is a stride (extra padding bytes after each row of pixels)
  • how to compute the next row or a specific pixel location using width, height, stride
  • the image formats RGB, ARGB, white&black
  • basic image processing functions (luminosity, midtone, contrast, color detection, edge detection, matrix convulsion)
  • 3D vectorial representation of a RGB color

Upvotes: 2

user88637
user88637

Reputation: 12150

check out BOOST , it has a simple Image Processing Library called GIL. It also has extensions to import common formats.

http://www.boost.org/doc/libs/1_39_0/libs/gil/doc/index.html

Upvotes: 6

Related Questions