The Flutter Shutter Code Optimizer
|
00001 /*best_snpashot_average.h*/ 00002 /* 00003 * Copyright 2013 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 double best_snapshot_average(int flag_motion_model, double s, 00019 double proba_handcrafted_0); 00020 //The output of this function is the best exposure time for a 00021 //standard camera (best snapshot on average). 00022 00023 double best_snapshot_average_energy(double deltat, int flag_motion_model, 00024 double s, double proba_handcrafted_0); 00025 //Given the motion model compute the energy E_{snapshot-average} to be minimized 00026 //the noise X (multiplication) factor on average on v 00027 // (assuming a motion model) and on xi. 00028 00029 double best_snapshot_average_integrand(double v, double deltat); 00030 //Compute the noise X on average on xi 00031 00032 00033 double best_snapshot_integrand(double xi, double v, double deltat); 00034 //compute \frac{1}{\sqrt \Deltat \frac{\xi v Deltat /2}{\xi v Deltat /2}, 00035 //the noise X factor at xi and v and deltat 00036 00037 00038 double proba_motion_model(double v, double s, double proba_handcrafted_0, 00039 int flag_motion_model); 00040 //given the motion model and its parameter s compute \rho(v).