The flutter shutter camera simulator
|
Go to the source code of this file.
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 code_length, 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, float deltat) |
float abs_hat_alpha | ( | const float * | code, |
int | code_length, | ||
float | xi, | ||
float | deltat | ||
) |
Gives back the modulus of the Fourier transform
RETURNS the modulus at xi of the flutter shutter function given its code: {sin({ }{2})}{ 2} {k=0}^{L-1} e^{i {2k+1}{2}}
Definition at line 179 of file standard_routines.cpp.
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'.
*image | : image |
width | of image |
height | of image |
channel_number | number of channels of image |
Computing the mininum and max of image
Actually changing image-values
Definition at line 139 of file standard_routines.cpp.
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''.
*groundtruth | : image 1 |
*restored | : image 2 |
width | of image1 & 2 |
height | of image1 & 2 |
channel_number | number of channels of image1 & 2 |
*difference | : output |
Definition at line 49 of file standard_routines.cpp.
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.
*difference | : image containing the difference between the groundtruth and the actual values. |
width | of difference |
height | of 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.