Local Color Correction algorithm. More...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "io_png/io_png.h"
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 |
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
Definition in file localcolorcorrection.c.
void input2RGB | ( | unsigned char * | input, | |
float ** | RR, | |||
float ** | GG, | |||
float ** | BB, | |||
int | size | |||
) |
int main | ( | int | argc, | |
const char ** | argv | |||
) |
main function call
Definition at line 164 of file localcolorcorrection.c.
void RGB2output | ( | float * | R, | |
float * | G, | |||
float * | B, | |||
unsigned char * | output, | |||
int | size | |||
) |
Definition at line 138 of file localcolorcorrection.c.
unsigned char ScaleAndRound | ( | float | X | ) |
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.