Automatic Color Enhancement
Data Structures | Macros | Functions
histeq.c File Reference

Histogram equalization. More...

#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include "imageio.h"

Go to the source code of this file.

Data Structures

struct  program_params
 struct of program parameters More...
 

Macros

#define DEFAULT_NUMBINS   256
 

Functions

static int parse_params (program_params *param, int argc, char *argv[])
 
static void print_usage ()
 
int equalize_image (float *image, int width, int height, int num_bins)
 
int main (int argc, char **argv)
 

Detailed Description

Histogram equalization.

Author
Pascal Getreuer getre.nosp@m.uer@.nosp@m.gmail.nosp@m..com

Copyright (c) 2011-2012, Pascal Getreuer All rights reserved.

This program is free software: you can redistribute it and/or modify it under, at your option, the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version, or the terms of the simplified BSD license.

You should have received a copy of these licenses along with this program. If not, see http://www.gnu.org/licenses/ and http://www.opensource.org/licenses/bsd-license.html.

Definition in file histeq.c.