libAuxiliary.h File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <cmath>
#include <time.h>
#include <unistd.h>
Include dependency graph for libAuxiliary.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define LUTMAX   30.0
#define LUTMAXM1   29.0
#define LUTPRECISION   1000.0
#define MAX(i, j)   ( (i)<(j) ? (j):(i) )
#define MIN(i, j)   ( (i)<(j) ? (i):(j) )
#define fTiny   0.00000001f
#define COEFF_YR   0.299
#define COEFF_YG   0.587
#define COEFF_YB   0.114

Functions

void wxRgb2Yuv (float *r, float *g, float *b, float *y, float *u, float *v, int width, int height)
 RGV to YUV standard conversion.
void wxYuv2Rgb (float *r, float *g, float *b, float *y, float *u, float *v, int width, int height)
 YUV to RGB standard conversion.
void wxCopy (float *tpI, float *tpO, int ilength)
 Make a copy of float vector.
float l2_distance_r1 (float *u0, int i0, int j0, int i1, int j1, int width)
 Compute Euclidean distance of a 3x3 patch centered at (i0,j0), (u1,j1) of the same image.
void sFillLut (float *lut, int size)
 Tabulate Exp(-x).
float sLUT (float dif, float *lut)
 Compute Exp(-x).
void wxMedian (float *u, float *v, float fRadius, int inIter, int iWidth, int iHeight)
 Sliding window iterated median filter.
void QuickSortFloat (float *arr, int ilength)
 Standard Quicksort. Orders float array in increasing order.

Define Documentation

#define COEFF_YB   0.114

Definition at line 50 of file libAuxiliary.h.

#define COEFF_YG   0.587

Definition at line 49 of file libAuxiliary.h.

#define COEFF_YR   0.299

Definition at line 48 of file libAuxiliary.h.

#define fTiny   0.00000001f

Definition at line 45 of file libAuxiliary.h.

#define LUTMAX   30.0

Definition at line 36 of file libAuxiliary.h.

#define LUTMAXM1   29.0

Definition at line 37 of file libAuxiliary.h.

#define LUTPRECISION   1000.0

Definition at line 38 of file libAuxiliary.h.

#define MAX ( i,
 )     ( (i)<(j) ? (j):(i) )

Definition at line 41 of file libAuxiliary.h.

#define MIN ( i,
 )     ( (i)<(j) ? (i):(j) )

Definition at line 42 of file libAuxiliary.h.


Function Documentation

float l2_distance_r1 ( float *  u0,
int  i0,
int  j0,
int  i1,
int  j1,
int  width 
)

Compute Euclidean distance of a 3x3 patch centered at (i0,j0), (u1,j1) of the same image.

Parameters:
[in] u0 image
[in] (i0,j0) center of first window
[in] (i1,j1) center of second window
[in] width width of the image

Definition at line 171 of file libAuxiliary.cpp.

Here is the caller graph for this function:

void QuickSortFloat ( float *  arr,
int  ilength 
)

Standard Quicksort. Orders float array in increasing order.

Parameters:
[in] arr input array
[in] ilength length of the array
[out] arr output array

Definition at line 320 of file libAuxiliary.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void sFillLut ( float *  lut,
int  size 
)

Tabulate Exp(-x).

Parameters:
[out] lut output table
[in] size size of the table

Definition at line 122 of file libAuxiliary.cpp.

Here is the caller graph for this function:

float sLUT ( float  dif,
float *  lut 
)

Compute Exp(-x).

Parameters:
[in] dif value of x
[in] lut table of Exp(-x)

Definition at line 142 of file libAuxiliary.cpp.

Here is the caller graph for this function:

void wxCopy ( float *  tpI,
float *  tpO,
int  ilength 
)

Make a copy of float vector.

Parameters:
[in] tpI input vector
[out] tpO copy
[in] ilength length of the vector

Definition at line 102 of file libAuxiliary.cpp.

Here is the caller graph for this function:

void wxMedian ( float *  u,
float *  v,
float  fRadius,
int  inIter,
int  iWidth,
int  iHeight 
)

Sliding window iterated median filter.

Parameters:
[in] u input image
[out] v output image
[in] inIter number of iterations
[in] fRadius window of size (2*fRadius+1) x (2*fRadius+1)
[in] iWidth,iHeight size of the image

Definition at line 237 of file libAuxiliary.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void wxRgb2Yuv ( float *  r,
float *  g,
float *  b,
float *  y,
float *  u,
float *  v,
int  width,
int  height 
)

RGV to YUV standard conversion.

Y = COEFF_YR * R + COEFF_YG * G + COEFF_YB * B

U = R - Y

V = B - Y

Parameters:
[in] r,g,b input image
[out] y,u,v yuv coordinates
[in] width,height size of the image

Definition at line 50 of file libAuxiliary.cpp.

Here is the caller graph for this function:

void wxYuv2Rgb ( float *  r,
float *  g,
float *  b,
float *  y,
float *  u,
float *  v,
int  width,
int  height 
)

YUV to RGB standard conversion.

Parameters:
[in] y,u,v yuv coordinates
[out] r,g,b ouput image
[in] width,height size of the image

Definition at line 75 of file libAuxiliary.cpp.

Here is the caller graph for this function:

 All Files Functions Defines

Generated on Fri May 27 09:39:41 2011 for self similarity driven demosaicking by  doxygen 1.6.1