Main Page
Modules
Namespaces
Classes
Files
File List
File Members
TiePointsLocatorInputParameters.cpp
Go to the documentation of this file.
1
/* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2
3
This file is part of the TerraLib - a Framework for building GIS enabled applications.
4
5
TerraLib is free software: you can redistribute it and/or modify
6
it under the terms of the GNU Lesser General Public License as published by
7
the Free Software Foundation, either version 3 of the License,
8
or (at your option) any later version.
9
10
TerraLib is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU Lesser General Public License for more details.
14
15
You should have received a copy of the GNU Lesser General Public License
16
along with TerraLib. See COPYING. If not, write to
17
TerraLib Team at <terralib-team@terralib.org>.
18
*/
19
20
/*!
21
\file terralib/rp/TiePointsLocatorInputParameters.cpp
22
\brief Tie points locator input parameters.
23
*/
24
25
#include "
TiePointsLocatorInputParameters.h
"
26
27
namespace
te
28
{
29
namespace
rp
30
{
31
TiePointsLocatorInputParameters::TiePointsLocatorInputParameters
()
32
{
33
reset
();
34
}
35
36
TiePointsLocatorInputParameters::TiePointsLocatorInputParameters
(
const
TiePointsLocatorInputParameters
& other )
37
{
38
reset
();
39
operator=
( other );
40
}
41
42
TiePointsLocatorInputParameters::~TiePointsLocatorInputParameters
()
43
{
44
reset
();
45
}
46
47
void
TiePointsLocatorInputParameters::reset
() throw(
te
::rp::Exception )
48
{
49
m_interesPointsLocationStrategy
=
TiePointsLocatorInputParameters::MoravecStrategyT
;
50
m_inRaster1Ptr
= 0;
51
m_inMaskRaster1Ptr
= 0;
52
m_inRaster1Bands
.clear();
53
m_raster1TargetAreaLineStart
= 0;
54
m_raster1TargetAreaColStart
= 0;
55
m_raster1TargetAreaWidth
= 0;
56
m_raster1TargetAreaHeight
= 0;
57
m_inRaster2Ptr
= 0;
58
m_inMaskRaster2Ptr
= 0;
59
m_inRaster2Bands
.clear();
60
m_raster2TargetAreaLineStart
= 0;
61
m_raster2TargetAreaColStart
= 0;
62
m_raster2TargetAreaWidth
= 0;
63
m_raster2TargetAreaHeight
= 0;
64
m_enableMultiThread
=
true
;
65
m_enableProgress
=
false
;
66
m_maxTiePoints
= 2500;
67
m_pixelSizeXRelation
= 1;
68
m_pixelSizeYRelation
= 1;
69
m_geomTransfName
=
"Affine"
;
70
m_geomTransfMaxError
= 2;
71
m_moravecCorrelationWindowWidth
= 21;
72
m_moravecWindowWidth
= 21;
73
m_enableGeometryFilter
=
true
;
74
m_geometryFilterAssurance
= 0.75;
75
m_moravecNoiseFilterIterations
= 1;
76
m_surfScalesNumber
= 3;
77
m_surfOctavesNumber
= 2;
78
m_subSampleOptimizationRescaleFactor
= 1.0;
79
m_subSampleOptimizationMinTPAreaCoverage
= 25;
80
m_subSampleOptimizationMinTPNumberFactor
= 2;
81
m_surfMaxNormEuclideanDist
= 0.75;
82
m_moravecMinAbsCorrelation
= 0.25;
83
m_interpMethod
=
te::rst::NearestNeighbor
;
84
m_tiePointsSubSectorsSplitFactor
= 3;
85
}
86
87
const
TiePointsLocatorInputParameters
&
TiePointsLocatorInputParameters::operator=
(
88
const
TiePointsLocatorInputParameters
& params )
89
{
90
reset
();
91
92
m_interesPointsLocationStrategy
= params.
m_interesPointsLocationStrategy
;
93
m_inRaster1Ptr
= params.
m_inRaster1Ptr
;
94
m_inMaskRaster1Ptr
= params.
m_inMaskRaster1Ptr
;
95
m_inRaster1Bands
= params.
m_inRaster1Bands
;
96
m_raster1TargetAreaLineStart
= params.
m_raster1TargetAreaLineStart
;
97
m_raster1TargetAreaColStart
= params.
m_raster1TargetAreaColStart
;
98
m_raster1TargetAreaWidth
= params.
m_raster1TargetAreaWidth
;
99
m_raster1TargetAreaHeight
= params.
m_raster1TargetAreaHeight
;
100
m_inRaster2Ptr
= params.
m_inRaster2Ptr
;
101
m_inMaskRaster2Ptr
= params.
m_inMaskRaster2Ptr
;
102
m_inRaster2Bands
= params.
m_inRaster2Bands
;
103
m_raster2TargetAreaLineStart
= params.
m_raster2TargetAreaLineStart
;
104
m_raster2TargetAreaColStart
= params.
m_raster2TargetAreaColStart
;
105
m_raster2TargetAreaWidth
= params.
m_raster2TargetAreaWidth
;
106
m_raster2TargetAreaHeight
= params.
m_raster2TargetAreaHeight
;
107
m_enableMultiThread
= params.
m_enableMultiThread
;
108
m_enableProgress
= params.
m_enableProgress
;
109
m_maxTiePoints
= params.
m_maxTiePoints
;
110
m_pixelSizeXRelation
= params.
m_pixelSizeXRelation
;
111
m_pixelSizeYRelation
= params.
m_pixelSizeYRelation
;
112
m_geomTransfName
= params.
m_geomTransfName
;
113
m_geomTransfMaxError
= params.
m_geomTransfMaxError
;
114
m_moravecCorrelationWindowWidth
= params.
m_moravecCorrelationWindowWidth
;
115
m_moravecWindowWidth
= params.
m_moravecWindowWidth
;
116
m_enableGeometryFilter
= params.
m_enableGeometryFilter
;
117
m_geometryFilterAssurance
= params.
m_geometryFilterAssurance
;
118
m_moravecNoiseFilterIterations
= params.
m_moravecNoiseFilterIterations
;
119
m_surfScalesNumber
= params.
m_surfScalesNumber
;
120
m_surfOctavesNumber
= params.
m_surfOctavesNumber
;
121
m_subSampleOptimizationRescaleFactor
= params.
m_subSampleOptimizationRescaleFactor
;
122
m_subSampleOptimizationMinTPAreaCoverage
= params.
m_subSampleOptimizationMinTPAreaCoverage
;
123
m_subSampleOptimizationMinTPNumberFactor
= params.
m_subSampleOptimizationMinTPNumberFactor
;
124
m_surfMaxNormEuclideanDist
= params.
m_surfMaxNormEuclideanDist
;
125
m_moravecMinAbsCorrelation
= params.
m_moravecMinAbsCorrelation
;
126
m_interpMethod
= params.
m_interpMethod
;
127
m_tiePointsSubSectorsSplitFactor
= params.
m_tiePointsSubSectorsSplitFactor
;
128
129
return
*
this
;
130
}
131
132
te::common::AbstractParameters
*
TiePointsLocatorInputParameters::clone
()
const
133
{
134
return
new
TiePointsLocatorInputParameters
( *
this
);
135
}
136
137
}
// end namespace rp
138
}
// end namespace te
139
te::rp::TiePointsLocatorInputParameters::TiePointsLocatorInputParameters
TiePointsLocatorInputParameters()
Definition:
TiePointsLocatorInputParameters.cpp:31
te::rst::NearestNeighbor
Near neighborhood interpolation method.
Definition:
Enums.h:95
te::rp::TiePointsLocatorInputParameters::MoravecStrategyT
Definition:
TiePointsLocatorInputParameters.h:60
te::rp::TiePointsLocatorInputParameters::m_surfMaxNormEuclideanDist
double m_surfMaxNormEuclideanDist
The maximum acceptable euclidean distance when matching features (when applicable), default:0.75, valid range: [0,1].
Definition:
TiePointsLocatorInputParameters.h:148
te::rp::TiePointsLocatorInputParameters::m_inRaster2Bands
std::vector< unsigned int > m_inRaster2Bands
Bands to be used from the input raster 2.
Definition:
TiePointsLocatorInputParameters.h:84
te::rp::TiePointsLocatorInputParameters::~TiePointsLocatorInputParameters
~TiePointsLocatorInputParameters()
Definition:
TiePointsLocatorInputParameters.cpp:42
te::rp::TiePointsLocatorInputParameters::m_enableProgress
bool m_enableProgress
Enable/Disable the progress interface (default:false).
Definition:
TiePointsLocatorInputParameters.h:96
te::rp::TiePointsLocatorInputParameters::m_raster2TargetAreaLineStart
unsigned int m_raster2TargetAreaLineStart
The first line of the raster 2 target area to process (default:0 - The entire raster will be consider...
Definition:
TiePointsLocatorInputParameters.h:86
te::rp::TiePointsLocatorInputParameters::m_moravecWindowWidth
unsigned int m_moravecWindowWidth
The Moravec window width used to locate canditate tie-points (minimum 3, default: 21 )...
Definition:
TiePointsLocatorInputParameters.h:131
te::rp::TiePointsLocatorInputParameters::m_surfScalesNumber
unsigned int m_surfScalesNumber
The number of sub-sampling scales to generate, when applicable (default:3, minimum:3).
Definition:
TiePointsLocatorInputParameters.h:144
te::rp::TiePointsLocatorInputParameters::m_geomTransfMaxError
double m_geomTransfMaxError
The maximum allowed transformation error (pixel units, default:2).
Definition:
TiePointsLocatorInputParameters.h:106
te::rp::TiePointsLocatorInputParameters::m_subSampleOptimizationRescaleFactor
double m_subSampleOptimizationRescaleFactor
Sub-sampled optimization tie-points search rescale factor (Tie-ponts will be searched into a subsabmp...
Definition:
TiePointsLocatorInputParameters.h:112
te::rp::TiePointsLocatorInputParameters::clone
AbstractParameters * clone() const
Create a clone copy of this instance.
Definition:
TiePointsLocatorInputParameters.cpp:132
te::rp::TiePointsLocatorInputParameters::m_inRaster2Ptr
te::rst::Raster const * m_inRaster2Ptr
Input raster 2.
Definition:
TiePointsLocatorInputParameters.h:80
te::rp::TiePointsLocatorInputParameters::m_moravecCorrelationWindowWidth
unsigned int m_moravecCorrelationWindowWidth
The correlation window width used to correlate points between the images (minimum 3...
Definition:
TiePointsLocatorInputParameters.h:129
te::rp::TiePointsLocatorInputParameters::m_moravecNoiseFilterIterations
unsigned int m_moravecNoiseFilterIterations
The number of noise filter iterations, when applicable (used to remove image noise, zero will disable the noise Filter, default:1).
Definition:
TiePointsLocatorInputParameters.h:133
te::rp::TiePointsLocatorInputParameters::m_maxTiePoints
unsigned int m_maxTiePoints
The maximum number of tie-points to generate (0:Automatically calculated, default:2500).
Definition:
TiePointsLocatorInputParameters.h:98
te::rp::TiePointsLocatorInputParameters::m_raster1TargetAreaHeight
unsigned int m_raster1TargetAreaHeight
The raster 1 target area height (default:0 - The entire raster will be considered).
Definition:
TiePointsLocatorInputParameters.h:78
te::rp::TiePointsLocatorInputParameters::m_pixelSizeXRelation
double m_pixelSizeXRelation
The pixel resolution relation m_pixelSizeXRelation = raster1_pixel_res_x / raster2_pixel_res_x (defau...
Definition:
TiePointsLocatorInputParameters.h:100
te::rp::TiePointsLocatorInputParameters::m_geometryFilterAssurance
double m_geometryFilterAssurance
Geometry assurance (the error-free selection percent assurance) - Use Lower values for good tie-point...
Definition:
TiePointsLocatorInputParameters.h:110
te::rp::TiePointsLocatorInputParameters::m_enableGeometryFilter
bool m_enableGeometryFilter
Enable/disable the geometry filter/outliers remotion (default:true).
Definition:
TiePointsLocatorInputParameters.h:108
te::rp::TiePointsLocatorInputParameters::m_inRaster1Bands
std::vector< unsigned int > m_inRaster1Bands
Bands to be used from the input raster 1.
Definition:
TiePointsLocatorInputParameters.h:70
te
URI C++ Library.
Definition:
AddressGeocodingOp.h:51
te::rp::TiePointsLocatorInputParameters::m_subSampleOptimizationMinTPAreaCoverage
double m_subSampleOptimizationMinTPAreaCoverage
Sub-sampled optimization - mininumum required tie-points covered area percent of each raster area - v...
Definition:
TiePointsLocatorInputParameters.h:114
te::rp::TiePointsLocatorInputParameters::m_tiePointsSubSectorsSplitFactor
unsigned int m_tiePointsSubSectorsSplitFactor
The algorithm will try to generate tie-points distributed over image sectors ( Default: 3 - 3x3 sub-s...
Definition:
TiePointsLocatorInputParameters.h:120
te::rp::TiePointsLocatorInputParameters::m_inRaster1Ptr
te::rst::Raster const * m_inRaster1Ptr
Input raster 1.
Definition:
TiePointsLocatorInputParameters.h:66
te::rp::TiePointsLocatorInputParameters::m_surfOctavesNumber
unsigned int m_surfOctavesNumber
The number of octaves to generate, when applicable (default: 2, minimum:2).
Definition:
TiePointsLocatorInputParameters.h:146
te::rp::TiePointsLocatorInputParameters::m_moravecMinAbsCorrelation
double m_moravecMinAbsCorrelation
The minimum acceptable absolute correlation value when matching features (when applicable), default:0.25, valid range: [0,1].
Definition:
TiePointsLocatorInputParameters.h:135
te::rp::TiePointsLocatorInputParameters::m_subSampleOptimizationMinTPNumberFactor
double m_subSampleOptimizationMinTPNumberFactor
Sub-sampled optimization - mininumum required tie-points number factor - valid range [1...
Definition:
TiePointsLocatorInputParameters.h:116
te::common::AbstractParameters
Abstract parameters base interface.
Definition:
AbstractParameters.h:42
te::rp::TiePointsLocatorInputParameters::m_raster1TargetAreaWidth
unsigned int m_raster1TargetAreaWidth
The raster 1 target area width (default:0 - The entire raster will be considered).
Definition:
TiePointsLocatorInputParameters.h:76
te::rp::TiePointsLocatorInputParameters::m_pixelSizeYRelation
double m_pixelSizeYRelation
The pixel resolution relation m_pixelSizeYRelation = raster1_pixel_res_y / raster2_pixel_res_y (defau...
Definition:
TiePointsLocatorInputParameters.h:102
te::rp::TiePointsLocatorInputParameters::m_raster1TargetAreaLineStart
unsigned int m_raster1TargetAreaLineStart
The first line of the raster 1 target area to process (default:0 - The entire raster will be consider...
Definition:
TiePointsLocatorInputParameters.h:72
te::rp::TiePointsLocatorInputParameters::m_raster2TargetAreaColStart
unsigned int m_raster2TargetAreaColStart
The first column of the raster 2 target area to process (default:0 - The entire raster will be consid...
Definition:
TiePointsLocatorInputParameters.h:88
te::rp::TiePointsLocatorInputParameters::m_raster2TargetAreaHeight
unsigned int m_raster2TargetAreaHeight
The raster 2 target area height (default:0 - The entire raster will be considered).
Definition:
TiePointsLocatorInputParameters.h:92
te::rp::TiePointsLocatorInputParameters::m_enableMultiThread
bool m_enableMultiThread
Enable/Disable the use of multi-threads (default:true).
Definition:
TiePointsLocatorInputParameters.h:94
te::rp::TiePointsLocatorInputParameters::m_inMaskRaster1Ptr
te::rst::Raster const * m_inMaskRaster1Ptr
Optional one band input mask raster 1 (tie-points will not be generated inside mask image areas marke...
Definition:
TiePointsLocatorInputParameters.h:68
te::rp::TiePointsLocatorInputParameters::m_inMaskRaster2Ptr
te::rst::Raster const * m_inMaskRaster2Ptr
Optional one band input mask raster 2 (tie-points will not be generated inside mask image areas marke...
Definition:
TiePointsLocatorInputParameters.h:82
te::rp::TiePointsLocatorInputParameters::reset
void reset()
Clear all internal allocated resources and reset the parameters instance to its initial state...
Definition:
TiePointsLocatorInputParameters.cpp:47
te::rp::TiePointsLocatorInputParameters::m_geomTransfName
std::string m_geomTransfName
The name of the geometric transformation used to ensure tie-points consistency (see each te::gm::GTFa...
Definition:
TiePointsLocatorInputParameters.h:104
te::rp::TiePointsLocatorInputParameters::operator=
const TiePointsLocatorInputParameters & operator=(const TiePointsLocatorInputParameters ¶ms)
Definition:
TiePointsLocatorInputParameters.cpp:87
te::rp::TiePointsLocatorInputParameters::m_raster1TargetAreaColStart
unsigned int m_raster1TargetAreaColStart
The first column of the raster 2 target area to process (default:0 - The entire raster will be consid...
Definition:
TiePointsLocatorInputParameters.h:74
te::rp::TiePointsLocatorInputParameters::m_raster2TargetAreaWidth
unsigned int m_raster2TargetAreaWidth
The raster 2 target area width (default:0 - The entire raster will be considered).
Definition:
TiePointsLocatorInputParameters.h:90
te::rp::TiePointsLocatorInputParameters
TiePointsLocator input parameters.
Definition:
TiePointsLocatorInputParameters.h:47
TiePointsLocatorInputParameters.h
TiePointsLocator input parameters.
te::rp::TiePointsLocatorInputParameters::m_interpMethod
te::rst::Interpolator::Method m_interpMethod
The raster interpolator method (default:NearestNeighbor).
Definition:
TiePointsLocatorInputParameters.h:118
te::rp::TiePointsLocatorInputParameters::m_interesPointsLocationStrategy
InteresPointsLocationStrategyType m_interesPointsLocationStrategy
The strategy used to locate interest points (default:MoravecStrategyT).
Definition:
TiePointsLocatorInputParameters.h:64
git_master
terralib5
src
terralib
rp
TiePointsLocatorInputParameters.cpp
Generated on Tue Jan 12 2016 08:40:59 for TerraLib by
1.8.9.1