|
The flutter shutter camera simulator
|
Routines for computing difference, RMSE, PNSR, dynamic renormalization, Flutter Shutter Fourier transform. More...
#include <math.h>#include <stdio.h>
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) |
Routines for computing difference, RMSE, PNSR, dynamic renormalization, Flutter Shutter Fourier transform.
Definition in file standard_routines.cpp.
| #define ABS | ( | x | ) | (((x) > 0) ? (x) : (-(x))) |
Definition at line 29 of file standard_routines.cpp.
| 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.

| 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.

| 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.

| 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.

1.7.6.1