Functions

retinex_pde_lib.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

float * retinex_pde (float *data, size_t nx, size_t ny, float t)
 retinex PDE implementation

Function Documentation

float* retinex_pde ( float *  data,
size_t  nx,
size_t  ny,
float  t 
)

retinex PDE implementation

This function solves the Retinex PDE equation with forward and backward DCT.

The input array is processed as follow:

  • a discrete laplacian is computed with a threshold;
  • this discrete laplacian array is symmetrised in both directions;
  • this data is transformed by forward DFT (both steps can be handled by a simple DCT);
  • the DFT data is modified by $ \hat{u}(i, j) = \frac{\hat{F}(i, j)} {4 - 2 \cos(\frac{i \pi}{n_x}) - 2 \cos(\frac{j \pi}{n_y})} $;
  • this data is transformed by backward DFT.
Parameters:
data input/output array
nx,ny dimension
t retinex threshold
Returns:
data, or NULL if an error occured

Definition at line 268 of file retinex_pde_lib.c.

Here is the call graph for this function:

Here is the caller graph for this function:

 All Files Functions Variables Defines