Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Image manipulation, theory, formulas and pseudo code

I'd like to know where read materials to learn how to manipulate image via code. I just created a simple software to read any pixels from an image and i'm able to apply some simple code to modify it, for example i can create a gray scale image using this (pseudo)code:

foreach(pixel in image){
 red = pixel.r;
 green = pixel.g;
 blue = pixel.b;
 alpha = pixel.a;

 gray = (red + green + blue) / 3; 

 pixel.r = gray;
 pixel.g = gray;
 pixel.b = gray;
}

Do you know websites (or a books) where i can find any informations about image manipulation applied to software development ?

like image 973
MatterGoal Avatar asked Nov 21 '25 22:11

MatterGoal


1 Answers

If you need a fast approach to this problem, you can use as solution wikipedia :) try out these links, there you'll find formulas too.

  • http://en.wikipedia.org/wiki/Gaussian_blur
  • http://en.wikipedia.org/wiki/Sepia_(color) in the right box you find RGB %

I have to separate my answers because as new user i can post only 2 hyperlinks at once

like image 192
ThaFu Avatar answered Nov 24 '25 04:11

ThaFu