36 #define cimg_plugin "plugins/add_fileformat.h"
37 #define cimg_use_netcdf
39 #ifdef cimg_use_netcdf
40 #include "../NetCDF.Tool/struct_parameter_NetCDF.h"
43 #define cimg_plugin2 "plugins/netcdf_file_format4CImg2.h"
44 #define cimglist_plugin2 "plugins/netcdf_file_format4CImgList2.h"
45 #include "../CImg.Tool/CImg_NetCDF.h"
52 #include "Cmesh_factory.h"
54 #include "CshapeFunction_factory.h"
64 template<
typename T,
typename Timg>
70 std::string class_name, m_correl_type, m_correl_name;
81 class_name =
"Correlation : mother";
85 m_threadNB = omp_get_num_threads();
92 virtual void init(CParameterNetCDF &fp) = 0;
101 cimglist_for(solution,var)
103 solution[var].blur_median(m_medianFilter);
108 void count(
const int &increment,
const int &dim,
int &counter)
111 if (100-increment*100/dim<=counter-10)
113 std::cout<<
"remaining : "<<(int)(100.-increment*100./dim)<<
"\%\n";
114 counter = 100-increment*100/dim;
virtual void regularize(const Cmesh< T, Timg > &oMesh, const Cimage< Timg > &oImage, CImgList< T > &solution)
Definition: Ccorrelation.h:96
load image and mask from cdl and store fields. It also creates a resized version of data in the case ...
this is the mother class of every correlation classes. m_correl_type refers to the the type of correl...
Definition: Ccorrelation.h:65
It implements a vector of n pointer toward a specific Cpeak class to detected successive peaks within...