Debian Codegraph @

src/algorithms/ImgRegression.h

raw symbols SCIP
1 /**********************************************************************
2 ImgRegression.h: class to calculate regression between two raster datasets
3 Author(s): [email protected]
4 Copyright (C) 2016-2020 European Union (Joint Research Centre)
5
6 This file is part of jiplib.
7
8 jiplib is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
12
13 jiplib is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with jiplib. If not, see <https://www.gnu.org/licenses/>.
20 ***********************************************************************/
21 #ifndef _IMGREGRESSION_H_
22 #define _IMGREGRESSION_H_
23
24 #include <vector>
25 #include "imageclasses/Jim.h"
26 #include "StatFactory.h"
27
28 namespace imgregression
29 {
30 class ImgRegression{
31 public:
32 ImgRegression(void);
33 ~ImgRegression(void);
34 double getRMSE(Jim& imgReader1, Jim& imgReader2, double &c0, double &c1, unsigned int b1=0, unsigned int b2=0, short verbose=0) const;
35 double getRMSE(Jim& imgReader, unsigned int b1, unsigned int b2, double& c0, double& c1, short verbose=0) const;
36 double getR2(Jim& imgReader1, Jim& imgReader2, double &c0, double &c1, unsigned int b1=0, unsigned int b2=0, short verbose=0) const;
37 double pgetR2(Jim& imgReader1, Jim& imgReader2, double& c0, double& c1, unsigned int band1, unsigned int band2, short verbose=0) const;
38 double getR2(Jim& imgReader, unsigned int b1, unsigned int b2, double& c0, double& c1, short verbose=0) const;
39 double pgetR2(Jim& imgReader, unsigned int band1, unsigned int band2, double& c0, double& c1, short verbose=0) const;
40
41 void setThreshold(double theThreshold){m_threshold=theThreshold;};
42 void setDown(int theDown){m_down=theDown;};
43 private:
44 int m_down;
45 double m_threshold;
46 };
47 }
48 #endif //_IMGREGRESSION_H_