YaDICs  V04.14.a
Yet another Digital Image Correlation software: platform dedicated to 2/3D Fluid and Solid kinematics field measurements.
 All Classes Files Functions Variables Pages
Cfield_opticalFlow.h
1 /**********************************************************************
2  * Copyright (C) 2012, The YaDICs Project Developers.
3  * See the COPYRIGHT file at the top-level directory of this distribution ./COPYRIGHT.
4  * See ./COPYING file for copying and redistribution conditions.
5  *
6  * This file is part of YaDICs.
7  * YaDICs is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * YaDICs is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with YaDICs. If not, see <http://www.gnu.org/licenses/>.
19  *
20  * Information about how to use the software are provided at http://yadic.univ-lille1.fr/
21  **********************************************************************/
22 
23 
24 #ifndef CFIELD_OPTICALFLOW
25 #define CFIELD_OPTICALFLOW
26 
27 
28 //-----------------------------CIMG_NETCDF-------------------------------
29 #define cimg_plugin "plugins/add_fileformat.h"
30 #define cimg_use_netcdf
31 
32 #ifdef cimg_use_netcdf
33  #include "../NetCDF.Tool/struct_parameter_NetCDF.h"
34 // #define cimg_plugin1 "plugins/netcdf_file_format4CImg1.h"
35 // #define cimglist_plugin1 "plugins/netcdf_file_format4CImgList1.h"
36  #define cimg_plugin2 "plugins/netcdf_file_format4CImg2.h"
37  #define cimglist_plugin2 "plugins/netcdf_file_format4CImgList2.h"
38  #include "../CImg.Tool/CImg_NetCDF.h"
39 #endif
40 //-----------------------------CIMG_NETCDF-------------------------------
41 
42 #include "Cfield.h"
43 
49 template<typename T, typename Timg>
50 class Cfield_opticalFlow: public Cfield<T,Timg>
51 {
52 
53  public:
54 
56  {// constructor
57 
58  this->class_name = "Field : Optical Flow";
59 
60  }
61 
62  virtual void init(CParameterNetCDF &fp)
63  {
65  //check for the current shape function
66  CshapeFunction_factory<T,Timg> shape_factory(this->m_name.c_str());
68  shape_factory.m_paramPath = this->m_paramPath;
69  shape_factory.m_verbose = this->m_verbose;
70  this->m_pShape = shape_factory.create(fp);
71 
72  if(this->m_verbose){printf("Current step used a shape function : %s\n",this->m_pShape->m_type.c_str());}
73  if(this->m_verbose){printf("with %i modes",this->m_pShape->m_dof);}
74 
75  }
76 
77 
78 };
79 
80 
81 #endif
This factory create a pointer toward the required ShapeFunction class. The pointer creation could onl...
Definition: CshapeFunction_factory.h:45
this class implement the initialization of fields, residue map and deformed image from data coming fr...
Definition: Cfield_opticalFlow.h:50
virtual void init(CParameterNetCDF &fp)
Definition: Cfield_opticalFlow.h:62
Definition: Cfield.h:51