Displaying posts categorized under

Image Processing

Watermark Images – A Software for Adding Text into Images

Every time when i post article in my blog, i used to display some images,  also i will think about adding  “my blog name:OpenPeta.com” as a watermark into the images for ownership purpose [In OpenPeta all content and images are published under Open source and creative common licenses , so any one can copy and [...]

2D Graphics Using C in Linux [ Graphics.h in Linux ]

Most of technical people are trying to migrate from windows to Linux now a days , but they are facing lot of problems with Linux . they do not even know the forums and blogs of Linux which would be useful for finding answer to their query. The main problem of open source is choosing [...]

Grabbing Pixels from PGM Image using C

#include<stdio.h> #include<string.h> #include<stdlib.h> /* * Auhtor : Anthoniraj.A * Date : 24/03/2009 */ int** imageRead(char imageName[]); void imageWrite(int** pels); int width, height; int **pixels; unsigned char *charImage;   int** imageRead(char imageName[]) { FILE* fp;   //PGM Headers Variable Declaration char* type; int *ptr; int q, i, j;   char header[100]; //Open file for Reading in [...]