The flutter shutter camera simulator
codes_flutter.cpp
Go to the documentation of this file.
00001 /*codes_flutter.cpp*/
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 
00035 #include "codes_flutter.h"
00036 
00037 
00038 
00043 
00044 const int num_code=6; //number of code
00045 const int code_length=52; //Number of coefficients of the code
00046 
00048 
00049 
00050 const float code[6][52]=
00051 {
00052     {
00053         1,
00054         0,
00055         0,
00056         0,
00057         0,
00058         0,
00059         0,
00060         0,
00061         0,
00062         0,
00063         0,
00064         0,
00065         0,
00066         0,
00067         0,
00068         0,
00069         0,
00070         0,
00071         0,
00072         0,
00073         0,
00074         0,
00075         0,
00076         0,
00077         0,
00078         0,
00079         0,
00080         0,
00081         0,
00082         0,
00083         0,
00084         0,
00085         0,
00086         0,
00087         0,
00088         0,
00089         0,
00090         0,
00091         0,
00092         0,
00093         0,
00094         0,
00095         0,
00096         0,
00097         0,
00098         0,
00099         0,
00100         0,
00101         0,
00102         0,
00103         0,
00104         0,
00105     },
00106 
00107 
00108 
00109 
00110 
00111     {
00112         1,
00113         0,
00114         1,
00115         0,
00116         0,
00117         0,
00118         0,
00119         1,
00120         1,
00121         1,
00122         0,
00123         0,
00124         0,
00125         0,
00126         0,
00127         1,
00128         0,
00129         1,
00130         0,
00131         0,
00132         0,
00133         0,
00134         1,
00135         1,
00136         0,
00137         0,
00138         1,
00139         1,
00140         1,
00141         1,
00142         0,
00143         1,
00144         1,
00145         1,
00146         0,
00147         1,
00148         0,
00149         1,
00150         1,
00151         1,
00152         0,
00153         0,
00154         1,
00155         0,
00156         0,
00157         1,
00158         1,
00159         0,
00160         0,
00161         1,
00162         1,
00163         1,
00164     },
00165 
00166 
00167 
00168 
00169     {
00170         0.5491,
00171         -0.4903,
00172         -0.6919,
00173         -0.5125,
00174         -0.9079,
00175         0.3560,
00176         -0.6357,
00177         0.0275,
00178         0.9568,
00179         0.8670,
00180         0.4087,
00181         0.4097,
00182         0.8659,
00183         0.3344,
00184         0.9198,
00185         -0.8389,
00186         0.7476,
00187         0.9808,
00188         0.1366,
00189         -0.7247,
00190         0.9320,
00191         0.8069,
00192         -0.5848,
00193         0.9493,
00194         -0.1682,
00195         0.9533,
00196         -0.2173,
00197         -0.5834,
00198         0.7483,
00199         0.4785,
00200         0.2266,
00201         0.9764,
00202         -0.4708,
00203         0.6723,
00204         0.8312,
00205         0.0084,
00206         0.6892,
00207         -0.5245,
00208         -0.8651,
00209         0.3417,
00210         0.5183,
00211         0.1317,
00212         -0.1301,
00213         0.3432,
00214         -0.3262,
00215         0.4367,
00216         -0.9771,
00217         -0.2120,
00218         0.1160,
00219         0.6648,
00220         0.9446,
00221         0.0590,
00222     },
00223 
00224 
00225     {
00226         1,
00227         1,
00228         1,
00229         1,
00230         1,
00231         1,
00232         1,
00233         1,
00234         1,
00235         1,
00236         1,
00237         1,
00238         1,
00239         1,
00240         1,
00241         1,
00242         1,
00243         1,
00244         1,
00245         1,
00246         1,
00247         1,
00248         1,
00249         1,
00250         1,
00251         1,
00252         1,
00253         1,
00254         1,
00255         1,
00256         1,
00257         1,
00258         1,
00259         1,
00260         1,
00261         1,
00262         1,
00263         1,
00264         1,
00265         1,
00266         1,
00267         1,
00268         1,
00269         1,
00270         1,
00271         1,
00272         1,
00273         1,
00274         1,
00275         1,
00276         1,
00277         1,
00278 
00279     },
00280 
00281     {
00282         0.0002,
00283         -0.0002,
00284         0.0002,
00285         -0.0003,
00286         0.0003,
00287         -0.0003,
00288         0.0003,
00289         -0.0004,
00290         0.0004,
00291         -0.0005,
00292         0.0005,
00293         -0.0006,
00294         0.0007,
00295         -0.0008,
00296         0.0009,
00297         -0.0011,
00298         0.0014,
00299         -0.0017,
00300         0.0021,
00301         -0.0027,
00302         0.0037,
00303         -0.0053,
00304         0.0082,
00305         -0.0141,
00306         0.0296,
00307         -0.0917,
00308         1.0000,
00309         -0.0917,
00310         0.0296,
00311         -0.0141,
00312         0.0082,
00313         -0.0053,
00314         0.0037,
00315         -0.0027,
00316         0.0021,
00317         -0.0017,
00318         0.0014,
00319         -0.0011,
00320         0.0009,
00321         -0.0008,
00322         0.0007,
00323         -0.0006,
00324         0.0005,
00325         -0.0005,
00326         0.0004,
00327         -0.0004,
00328         0.0003,
00329         -0.0003,
00330         0.0003,
00331         -0.0003,
00332         0.0002,
00333         -0.0002,
00334     },
00335     {
00336         //mipcode
00337         -0.0072629,
00338         0.0075565,
00339         -0.0078763,
00340         0.0082229,
00341         -0.0086028,
00342         0.0090181,
00343         -0.0094769,
00344         0.0099834,
00345         -0.010549,
00346         0.01118,
00347         -0.011893,
00348         0.012702,
00349         -0.01363,
00350         0.014703,
00351         -0.015961,
00352         0.017451,
00353         -0.01925,
00354         0.021458,
00355         -0.024239,
00356         0.027842,
00357         -0.032697,
00358         0.03958,
00359         -0.050083,
00360         0.067993,
00361         -0.10493,
00362         0.21912,
00363         1,
00364         0.29949,
00365         0.40839,
00366         0.22649,
00367         0.29058,
00368         0.18999,
00369         0.23588,
00370         0.16715,
00371         0.20305,
00372         0.15111,
00373         0.18066,
00374         0.13904,
00375         0.16419,
00376         0.12953,
00377         0.15143,
00378         0.12177,
00379         0.14119,
00380         0.11529,
00381         0.13274,
00382         0.10976,
00383         0.12561,
00384         0.10498,
00385         0.11949,
00386         0.10078,
00387         0.11418,
00388         0.097058,
00389     }
00390 
00391 
00392 };
 All Files Functions Variables Typedefs Defines