Commit 16f38cf0 authored by OTB Bot's avatar OTB Bot

STYLE

parent 5bb74610
......@@ -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();
......
......@@ -26,7 +26,7 @@
#include "otbBCOInterpolateImageFunction.h"
#include "itkNearestNeighborInterpolateImageFunction.h"
// MapProjection handler
// MapProjection handler
#include "otbWrapperMapProjectionParametersHandler.h"
#include "otbMacro.h"
......
......@@ -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
......
......@@ -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
};
};
}
}
......
......@@ -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 )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment