Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Main Repositories
otb
Commits
16f38cf0
Commit
16f38cf0
authored
Dec 08, 2011
by
OTB Bot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
STYLE
parent
5bb74610
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
23 deletions
+23
-23
Applications/Projections/otbConvertCartoToGeoPoint.cxx
Applications/Projections/otbConvertCartoToGeoPoint.cxx
+2
-2
Applications/Projections/otbOrthoRectification.cxx
Applications/Projections/otbOrthoRectification.cxx
+1
-1
Code/ApplicationEngine/otbWrapperMapProjectionParametersHandler.cxx
...cationEngine/otbWrapperMapProjectionParametersHandler.cxx
+7
-7
Code/ApplicationEngine/otbWrapperMapProjectionParametersHandler.h
...licationEngine/otbWrapperMapProjectionParametersHandler.h
+11
-11
Code/BasicFilters/otbMNFImageFilter.txx
Code/BasicFilters/otbMNFImageFilter.txx
+2
-2
No files found.
Applications/Projections/otbConvertCartoToGeoPoint.cxx
View file @
16f38cf0
...
...
@@ -96,10 +96,10 @@ private:
void
DoExecute
()
{
// Get the projectionRef
// Get the projectionRef
std
::
string
inputProjRef
=
MapProjectionParametersHandler
::
GetProjectionRefFromChoice
(
this
,
"mapproj"
);
// Instanciate a GenericRSTranform
// Instanciate a GenericRSTranform
// Input : coordiante system picked up by the user
// Output : WGS84 correponding to epsg code 4326
TransformType
::
Pointer
transform
=
TransformType
::
New
();
...
...
Applications/Projections/otbOrthoRectification.cxx
View file @
16f38cf0
...
...
@@ -26,7 +26,7 @@
#include "otbBCOInterpolateImageFunction.h"
#include "itkNearestNeighborInterpolateImageFunction.h"
// MapProjection handler
// MapProjection handler
#include "otbWrapperMapProjectionParametersHandler.h"
#include "otbMacro.h"
...
...
Code/ApplicationEngine/otbWrapperMapProjectionParametersHandler.cxx
View file @
16f38cf0
...
...
@@ -102,12 +102,12 @@ void MapProjectionParametersHandler::AddMapProjectionParameters( Application::Po
app
->
SetParameterString
(
key
,
"epsg"
);
}
/**
/**
* Helper method : Compute the ProjectionRef knowing the map
* projection picked up by the user
*
*
*/
const
std
::
string
MapProjectionParametersHandler
::
GetProjectionRefFromChoice
(
Application
::
Pointer
app
,
const
std
::
string
MapProjectionParametersHandler
::
GetProjectionRefFromChoice
(
Application
::
Pointer
app
,
const
std
::
string
&
key
)
{
std
::
ostringstream
zoneKey
;
...
...
@@ -187,14 +187,14 @@ const std::string MapProjectionParametersHandler::GetProjectionRefFromChoice(App
}
}
/**
/**
* Helper method : Compute the UTM paramaters relative to an image Origin
* Note: The key of the image must be set to be able to get the image.
* The key must be totally if the InputImageParameter belongs
* to a ParamaterGroup, ie set io.in
* to a ParamaterGroup, ie set io.in
*/
void
MapProjectionParametersHandler
::
InitializeUTMParameters
(
Application
::
Pointer
app
,
const
std
::
string
&
imageKey
,
void
MapProjectionParametersHandler
::
InitializeUTMParameters
(
Application
::
Pointer
app
,
const
std
::
string
&
imageKey
,
const
std
::
string
&
mapKey
)
{
// Get the UTM params keys
...
...
Code/ApplicationEngine/otbWrapperMapProjectionParametersHandler.h
View file @
16f38cf0
...
...
@@ -39,42 +39,42 @@ enum
/** \class MapProjectionParametersHandler
* \brief This class represent a helper class.
*
*
* This class allow creating a Group with several mapProjection
* paramaters
*/
class
MapProjectionParametersHandler
{
public:
/**
/**
* Add a Group containing several choices for map projections
*
*
*/
static
void
AddMapProjectionParameters
(
Application
::
Pointer
app
,
const
std
::
string
&
key
);
/**
/**
* Helper method : Compute the ProjectionRef knowing the map
* projection picked up by the user
*
*
*/
static
const
std
::
string
GetProjectionRefFromChoice
(
Application
::
Pointer
app
,
static
const
std
::
string
GetProjectionRefFromChoice
(
Application
::
Pointer
app
,
const
std
::
string
&
key
);
/**
/**
* Helper method : Compute the UTM paramaters relative an image
* Note: The key of the image must be set to be able to get the image.
* The key must be totally if the InputImageParameter belongs
* to a ParamaterGroup, ie set io.in
* to a ParamaterGroup, ie set io.in
*/
static
void
InitializeUTMParameters
(
Application
::
Pointer
app
,
const
std
::
string
&
imageKey
,
static
void
InitializeUTMParameters
(
Application
::
Pointer
app
,
const
std
::
string
&
imageKey
,
const
std
::
string
&
mapKey
);
protected:
MapProjectionParametersHandler
();
// not implemented
virtual
~
MapProjectionParametersHandler
();
// not implemented
};
};
}
}
...
...
Code/BasicFilters/otbMNFImageFilter.txx
View file @
16f38cf0
...
...
@@ -331,11 +331,11 @@ MNFImageFilter< TInputImage, TOutputImage, TNoiseImageFilter, TDirectionOfTransf
InternalMatrixType An = m_NoiseCovarianceMatrix.GetVnlMatrix();
InternalMatrixType W = An * Ax_inv;
vnl_svd< MatrixElementType > solver ( W );
vnl_svd< MatrixElementType > solver ( W );
InternalMatrixType transf = solver.U();
InternalMatrixType valP = solver.W();
InternalMatrixType normMat
InternalMatrixType normMat
= transf.transpose() * Ax_inv * transf;
for ( unsigned int i = 0; i < transf.rows(); ++i )
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment