The flutter shutter camera simulator
Defines | Functions
standard_routines.cpp File Reference

Routines for computing difference, RMSE, PNSR, dynamic renormalization, Flutter Shutter Fourier transform. More...

#include <math.h>
#include <stdio.h>
Include dependency graph for standard_routines.cpp:

Go to the source code of this file.

Defines

#define ABS(x)   (((x) > 0) ? (x) : (-(x)))

Functions

void image_difference (float *groundtruth, float *restored, int width, int height, int channel_number, float *difference)
 Compute the difference between two images Arguements: groundtruth, restored, width, height, difference The output is ''difference''.
void RMSE (float *difference, int width, int height, int channel_number, int border, int flag_rmse_ci)
 Compute the RMSE given a difference image and print it (printf). Arguements: difference, width, height, code_length, flag for printf The output is a printf.
void dynamic_renormalization (float *image, int width, int height, int channel_number)
 Change the dynamic to [0,255] Arguements: image, width, height The output is ''image'.
float abs_hat_alpha (const float *code, int code_length, float xi)

Detailed Description

Routines for computing difference, RMSE, PNSR, dynamic renormalization, Flutter Shutter Fourier transform.

Author:
Yohann Tendero <yohann.tendero@cmla.ens-cachan.fr>

Definition in file standard_routines.cpp.


Define Documentation

#define ABS (   x)    (((x) > 0) ? (x) : (-(x)))

Definition at line 29 of file standard_routines.cpp.


Function Documentation

float abs_hat_alpha ( const float *  code,
int  code_length,
float  xi 
)

Gives back the modulus of the Fourier transform

RETURNS the modulus at xi of the flutter shutter function given its code.

Definition at line 176 of file standard_routines.cpp.

Here is the caller graph for this function:

dynamic_renormalization ( float *  image,
int  width,
int  height,
int  channel_number 
)

Change the dynamic to [0,255] Arguements: image, width, height The output is ''image'.

Parameters:
*image: image
widthof image
heightof image
channel_numbernumber of channels of image

Computing the mininum and max of image

Actually changing image-values

Definition at line 139 of file standard_routines.cpp.

Here is the caller graph for this function:

image_difference ( float *  groundtruth,
float *  restored,
int  width,
int  height,
int  channel_number,
float *  difference 
)

Compute the difference between two images Arguements: groundtruth, restored, width, height, difference The output is ''difference''.

Parameters:
*groundtruth: image 1
*restored: image 2
widthof image1 & 2
heightof image1 & 2
channel_numbernumber of channels of image1 & 2
*difference: output

Definition at line 49 of file standard_routines.cpp.

Here is the caller graph for this function:

RMSE ( float *  difference,
int  width,
int  height,
int  channel_number,
int  border,
int  flag_rmse_ci 
)

Compute the RMSE given a difference image and print it (printf). Arguements: difference, width, height, code_length, flag for printf The output is a printf.

Parameters:
*difference: image containing the difference between the groundtruth and the actual values.
widthof difference
heightof difference
channel_number: number of channels of difference
border: (type : integer) exclude the firsts and lasts "border" columns in order to avoid mesurements of berders effects
flag_rmse_ci: only change the printf

Definition at line 85 of file standard_routines.cpp.

Here is the caller graph for this function:

 All Files Functions Variables Typedefs Defines