The flutter shutter camera simulator
standard_routines.h
Go to the documentation of this file.
00001 /* standard_routines.h */
00002 /*
00003 * Copyright 2012 IPOL Image Processing On Line http://www.ipol.im/
00004 *
00005 * This program is free software: you can redistribute it and/or modify
00006 * it under the terms of the GNU General Public License as published by
00007 * the Free Software Foundation, either version 3 of the License, or
00008 * (at your option) any later version.
00009 *
00010 * This program is distributed in the hope that it will be useful,
00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 * GNU General Public License for more details.
00014 *
00015 * You should have received a copy of the GNU General Public License
00016 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00017 */
00018 
00019 
00020 void image_difference(float *groundtruth,float *restored, int width,
00021                       int height,int channel_number, float *difference);
00022 //Compute thdifference.
00023 
00024 
00025 void RMSE(float *difference, int width, int height,int channel_number,
00026           int code_length, int flag_rmse_ci);
00027 //Compute the Root Mean Squarred Error (RMSE)
00028 
00029 void dynamic_renormalization(float *image, int width, int height,
00030                              int channel_number);
00031 //Affine contrast change => [0,255]
00032 
00033 float abs_hat_alpha(const float* code, int code_length, float xi);
00034 //Compute the MODULUS of the Fourier transform of the
00035 //flutter shutter function with code at \xi
 All Files Functions Variables Typedefs Defines