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
Cpeak_fitG.h
Go to the documentation of this file.
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 CPEAK_FITG
25 #define CPEAK_FITG
26 
37 #include "Cpeak_fitP.h"
38 
41 template<typename T>
42 class Cpeak_fitG : public Cpeak_fitP<T>
43 {
44 
45  public:
46 
47  std::string class_name;
48 
50  {
51 
52  class_name = "Cpeak_fitG";
53 // printf("\t\t\t\t\t\t\t%s\n",class_name.c_str());
54 
55  }// constructor
56 
57  virtual void peak_fit(CImg<T> &img)
58  {
59 
60  if (img.get_stats()[0]<=0)// min(img)<=0
61  {
63  printf("\t\t\t\t\t\t\t\tWarning, image value incompatible with gaussian fit, polynomial one is used");
64  }
65  else
66  {
67  this->ssd(img.log());
68  }
69 
70  }// method peak_fit (gaussian)
71 
72 };
73 
74 #endif
Definition: Cpeak_fitP.h:42
void ssd(CImg< Timg > &img)
Definition: Cpeak_fit.h:89
Definition: Cpeak_fitG.h:42