24 #ifndef CFORMAT_CHAR_FLOAT
25 #define CFORMAT_CHAR_FLOAT
44 class_name =
"Format : char double";
48 virtual void exec(
int argc,
char *argv[])
52 std::string ofile = cimg_option(
"-o",
"./",
"ofile");
60 pSequence->init(argc, argv);
62 for (
int s=0; s<pImage->num_samples(); s++)
67 pImage->exec(argc, argv, s);
70 if (pImage->m_mode != DEPENDENT){pSequence->m_modes.clear();}
71 pSequence->exec(argc, argv, *pImage);
73 save(*pSequence, *pImage, ofile, s);
77 CImg<T> res(pSequence->m_meanRes.size(),1,1,1,0);
78 cimg_forX(res,step){res[step] = pSequence->m_meanRes[step];}
79 pImage->
save_netcdf(res, ofile +
"residue_mean", 0);
81 std::cout<<
"calcul done\n";
Definition: Csequence.h:62
void save_netcdf(CImgList< T > &img, std::string name="images", const int &sample=0) const
Definition: Cimage.h:295
It returns a pointer toward a specific Image loader class according to a parameter.nc file. The parameter file is set by default or could be provide by command line. create function could be called using : int, string = type, CParameterNetCDF, and finally [argv,argc] !!!! The function to get parameters directly from command line doesn't work yet.
Definition: Cimage_factory.h:61