-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqgsleastsquares.h
42 lines (34 loc) · 1.6 KB
/
qgsleastsquares.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/***************************************************************************
qgsleastsquares.h
--------------------------------------
Date : Sun Sep 16 12:03:47 AKDT 2007
Copyright : (C) 2007 by Gary E. Sherman
Email : sherman at mrcc dot com
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
/* $Id$ */
#ifndef QGSLEASTSQUARES_H
#define QGSLEASTSQUARES_H
#include <vector>
#include <cstdarg>
#include <stdexcept>
#include "qgspoint.h"
class QgsLeastSquares
{
public:
static void linear( std::vector<QgsPoint> mapCoords,
std::vector<QgsPoint> pixelCoords,
QgsPoint& origin, double& pixelXSize, double& pixelYSize );
static void helmert( std::vector<QgsPoint> mapCoords,
std::vector<QgsPoint> pixelCoords,
QgsPoint& origin, double& pixelSize, double& rotation );
static void affine( std::vector<QgsPoint> mapCoords,
std::vector<QgsPoint> pixelCoords );
};
#endif