clahe.cpp File Reference
Definitions for Contrast Limited Adaptive Histogram Equalization (CLAHE).
More...
#include <cv.h>
#include "clahe.h"
#include <stdio.h>
#include <stdlib.h>
Go to the source code of this file.
Defines |
#define | BYTE_IMAGE |
#define | uiNR_OF_GREY (256) |
Typedefs |
typedef unsigned char | kz_pixel_t |
Functions |
static int | CLAHE (kz_pixel_t *pImage, unsigned int uiXRes, unsigned int uiYRes, kz_pixel_t Min, kz_pixel_t Max, unsigned int uiNrX, unsigned int uiNrY, unsigned int uiNrBins, float fCliplimit) |
static void | ClipHistogram (unsigned long *, unsigned int, unsigned long) |
void | cvAdaptEqualize (IplImage *src, IplImage *dst, unsigned int xdivs, unsigned int ydivs, unsigned int bins, int range) |
void | cvCLAdaptEqualize (IplImage *src, IplImage *dst, unsigned int xdivs, unsigned int ydivs, unsigned int bins, float limit, int range) |
static void | Interpolate (kz_pixel_t *, int, unsigned long *, unsigned long *, unsigned long *, unsigned long *, unsigned int, unsigned int, kz_pixel_t *) |
static void | MakeHistogram (kz_pixel_t *, unsigned int, unsigned int, unsigned int, unsigned long *, unsigned int, kz_pixel_t *) |
static void | MakeLut (kz_pixel_t *, kz_pixel_t, kz_pixel_t, unsigned int) |
static void | MapHistogram (unsigned long *, kz_pixel_t, kz_pixel_t, unsigned int, unsigned long) |
Variables |
static const unsigned int | uiMAX_REG_X = 16 |
static const unsigned int | uiMAX_REG_Y = 16 |
Detailed Description
Definitions for Contrast Limited Adaptive Histogram Equalization (CLAHE).
Definition in file clahe.cpp.
Define Documentation
#define uiNR_OF_GREY (256) |
Typedef Documentation
Function Documentation
static int CLAHE |
( |
kz_pixel_t * |
pImage, |
|
|
unsigned int |
uiXRes, |
|
|
unsigned int |
uiYRes, |
|
|
kz_pixel_t |
Min, |
|
|
kz_pixel_t |
Max, |
|
|
unsigned int |
uiNrX, |
|
|
unsigned int |
uiNrY, |
|
|
unsigned int |
uiNrBins, |
|
|
float |
fCliplimit | |
|
) |
| | [static] |
void ClipHistogram |
( |
unsigned long * |
pulHistogram, |
|
|
unsigned int |
uiNrGreylevels, |
|
|
unsigned long |
ulClipLimit | |
|
) |
| | [static] |
void cvAdaptEqualize |
( |
IplImage * |
src, |
|
|
IplImage * |
dst, |
|
|
unsigned int |
xdivs, |
|
|
unsigned int |
ydivs, |
|
|
unsigned int |
bins, |
|
|
int |
range | |
|
) |
| | |
void cvCLAdaptEqualize |
( |
IplImage * |
src, |
|
|
IplImage * |
dst, |
|
|
unsigned int |
xdivs, |
|
|
unsigned int |
ydivs, |
|
|
unsigned int |
bins, |
|
|
float |
limit, |
|
|
int |
range | |
|
) |
| | |
void Interpolate |
( |
kz_pixel_t * |
pImage, |
|
|
int |
uiXRes, |
|
|
unsigned long * |
pulMapLU, |
|
|
unsigned long * |
pulMapRU, |
|
|
unsigned long * |
pulMapLB, |
|
|
unsigned long * |
pulMapRB, |
|
|
unsigned int |
uiXSize, |
|
|
unsigned int |
uiYSize, |
|
|
kz_pixel_t * |
pLUT | |
|
) |
| | [static] |
void MakeHistogram |
( |
kz_pixel_t * |
pImage, |
|
|
unsigned int |
uiXRes, |
|
|
unsigned int |
uiSizeX, |
|
|
unsigned int |
uiSizeY, |
|
|
unsigned long * |
pulHistogram, |
|
|
unsigned int |
uiNrGreylevels, |
|
|
kz_pixel_t * |
pLookupTable | |
|
) |
| | [static] |
void MapHistogram |
( |
unsigned long * |
pulHistogram, |
|
|
kz_pixel_t |
Min, |
|
|
kz_pixel_t |
Max, |
|
|
unsigned int |
uiNrGreylevels, |
|
|
unsigned long |
ulNrOfPixels | |
|
) |
| | [static] |
Variable Documentation