cpd  0.5.1
Coherent Point Drift: C++ library for point set registration
normalization.hpp
Go to the documentation of this file.
1 // cpd - Coherent Point Drift
2 // Copyright (C) 2017 Pete Gadomski <pete.gadomski@gmail.com>
3 //
4 // This program is free software; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation; either version 2 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License along
15 // with this program; if not, write to the Free Software Foundation, Inc.,
16 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 
22 
23 #pragma once
24 
25 #include <cpd/matrix.hpp>
26 
27 namespace cpd {
28 
30 struct Normalization {
36  double fixed_scale;
42  double moving_scale;
43 
52  Normalization(const Matrix& fixed, const Matrix& moving,
53  bool linked = true);
54 };
55 } // namespace cpd
Vector moving_mean
The average of the moving points, that was subtracted from those data.
Definition: normalization.hpp:38
Vector fixed_mean
The average of the fixed points, that was subtracted from those data.
Definition: normalization.hpp:32
Matrix moving
The moving points.
Definition: normalization.hpp:40
Basic typedefs for our flavors of Eigen matrices.
Eigen::MatrixXd Matrix
Our base matrix class.
Definition: matrix.hpp:29
Eigen::VectorXd Vector
Typedef for our specific type of vector.
Definition: matrix.hpp:32
double moving_scale
The scaling factor for the moving points.
Definition: normalization.hpp:42
The results of normalizing data to a unit cube (or whatever dimensionality).
Definition: normalization.hpp:30
Matrix fixed
The fixed points.
Definition: normalization.hpp:34
Top-level cpd namespace.
Definition: affine.hpp:26
Normalization(const Matrix &fixed, const Matrix &moving, bool linked=true)
Creates a new normalization for the provided matrices.
double fixed_scale
The scaling factor for the fixed points.
Definition: normalization.hpp:36