37 template<
typename Timg> 
 
   47       this->class_name = 
"Image : file";
 
   51     virtual void init(CParameterNetCDF &fp)
 
   64       std::string att_name = 
"path";
 
   65       error = fp.loadAttribute(att_name,this->m_dirPath);
 
   67       error = fp.loadAttribute(att_name,this->m_maskName);
 
   70       this->m_list.var_name = this->m_name;
 
   72       this->m_list.load(this->m_paramPath);
 
   74       this->m_dim_sample = this->m_list.depth();
 
   76       this->m_dim_image = this->m_list.height();
 
   78       printf(
"\n\n\n\n\n\n--------\nCalcul under progress\n--------\n\n\n");
 
   82     virtual void load_images(CImg<char> &list, std::string &dir, 
const int &sample)
 
   85       this->m_img.assign(this->m_dim_image);
 
   87       cimglist_for(this->m_img,ind)
 
   90         this->m_img[ind].load((dir + std::string(list.get_shared_row(ind,sample))).c_str());
 
   92         this->m_img[ind].channel(0);
 
   93         printf(
"img%i : %s\n\n",ind,(dir + std::string(list.get_shared_row(ind,sample))).c_str());
 
  100       if (this->dim(0)>1){this->m_dim++;};
 
  101       if (this->dim(1)>1){this->m_dim++;};
 
  102       if (this->dim(2)>1){this->m_dim++;};  
 
load image and mask from cdl and store fields. It also creates a resized version of data in the case ...
Definition: Cimage_file.h:38
virtual void load_images(CImg< char > &list, std::string &dir, const int &sample)
Definition: Cimage_file.h:82
virtual void load_paths(CParameterNetCDF &fp)
Definition: Cimage_file.h:59