Non-uniformity correction of infrared images by midway equalization
|
00001 /* MIRE.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 00019 00020 #include <vector> 00021 float *MIRE( float [],float,int,int); 00022 //works on a copy of the image 00023 //(it's unsure wich sigma is the right one a first sight) 00025 void MIRE_automatic(float [],int, int,int,int,float); 00027 //all sigma_min:sigma_step:sigma_max will be tested (Matlab notation). 00028 float TV_column_norm(float [],int,int,float); 00030 00031 void specify_column(float [], int , int ,int , std::vector <float> ); 00033 00034 float gaussian(int ,float ); 00036 00037 std::vector <std::vector<float> > target_histogram( 00038 std::vector <std::vector<float> > ,int, int , float ); 00040 00041 std::vector <std::vector<float> > column_sorting(float [],int ,int ); 00043 00044 std::vector <float> histo_column(float [],int ,int , int );