localcolorcorrection.c File Reference

Local Color Correction algorithm. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "io_png/io_png.h"
Include dependency graph for localcolorcorrection.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

unsigned char ScaleAndRound (float X)
void input2RGB (unsigned char *input, float **RR, float **GG, float **BB, int size)
void RGB2output (float *R, float *G, float *B, unsigned char *output, int size)
int main (int argc, const char **argv)
 main function call

Variables

unsigned char * Im
unsigned char * Imi
long Dxy
int Dx
int Dy

Detailed Description

Local Color Correction algorithm.

Main executable file.

Parameters:

input image output image radius (default: 40), radius of Gaussian kernel option (default: 1), processing option (1, separate processing of R, G and B channels; 2, processing of intensity channel; 3, processing of luma channel in YPbPr color space; 4, processing of luma channel in HSL color space )

Read/write operations (png format) make use of io_png.c and io_png.h, by Nicolas Limare

Conversion operations between color spaces, make use colorspace library, by Pascal Getreuer

Author:
Juan Gabriel Gomila Salas <joan-by@hotmail.com>
Juan Gabriel Gomila Salas <joan-by@hotmail.com>

Definition in file localcolorcorrection.c.


Function Documentation

void input2RGB ( unsigned char *  input,
float **  RR,
float **  GG,
float **  BB,
int  size 
)

Definition at line 109 of file localcolorcorrection.c.

Here is the caller graph for this function:

int main ( int  argc,
const char **  argv 
)

main function call

Definition at line 164 of file localcolorcorrection.c.

Here is the call graph for this function:

void RGB2output ( float *  R,
float *  G,
float *  B,
unsigned char *  output,
int  size 
)

Definition at line 138 of file localcolorcorrection.c.

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned char ScaleAndRound ( float  X  ) 

Definition at line 89 of file localcolorcorrection.c.

Here is the caller graph for this function:


Variable Documentation

int Dx

Definition at line 157 of file localcolorcorrection.c.

long Dxy

Definition at line 156 of file localcolorcorrection.c.

int Dy

Definition at line 157 of file localcolorcorrection.c.

unsigned char* Im

Definition at line 155 of file localcolorcorrection.c.

unsigned char * Imi

Definition at line 155 of file localcolorcorrection.c.

 All Classes Files Functions Variables Typedefs Defines
Generated on Wed Oct 5 14:39:24 2011 for local color correction by  doxygen 1.6.3