Skip to content
Snippets Groups Projects
Commit 1e6b1acf authored by Otmane Lahlou's avatar Otmane Lahlou
Browse files

ENH: cleaning

parent a7d79ea0
Branches
Tags
No related merge requests found
......@@ -80,8 +80,6 @@ public:
double> NearestNeighborInterpolationType;
typedef otb::BCOInterpolateImageFunction<FloatVectorImageType> BCOInterpolationType;
typedef otb::PipelineMemoryPrintCalculator MemoryCalculatorType;
private:
OrthoRectification()
{
......@@ -140,9 +138,9 @@ private:
// Estimate a RPC model (for spot image for instance)
AddParameter(ParameterType_Group, "rpc", "Estimate RPC model");
MandatoryOff("rpc");
AddParameter(ParameterType_Int, "rpc.ncp", "Nb control Points");
SetParameterDescription("rpc","Activate RPC sensor model estimation. Parameter is the number of control points per axis");
MandatoryOff("rpc");
MandatoryOff("rpc.ncp");
// Interpolators
......@@ -161,6 +159,7 @@ private:
AddParameter(ParameterType_Empty, "map.utm.hem", "Hemisphere North");
MandatoryOff("map.utm.zone");
MandatoryOff("map.utm.hem");
MandatoryOff("map.utm");
AddChoice("map.lambert2", "Lambert II Etendu");
......@@ -177,14 +176,13 @@ private:
void DoUpdateParameters()
{
if (HasValue("in"))
if (HasValue("in"))
{
// input image
FloatVectorImageType* inImage = GetParameterImage("in");
FloatVectorImageType::Pointer inImage = GetParameterImage("in");
// Update the UTM zone params
InitializeUTMParameters();
// Get the output projection Ref
this->UpdateOutputProjectionRef();
......@@ -444,10 +442,6 @@ private:
m_ResampleFilter->SetOutputOrigin(ul);
}
// std::cout <<"Resampler : Output Origin "<<m_ResampleFilter->GetOutputOrigin() << std::endl;
// std::cout <<"Resampler : Output Spacing "<<m_ResampleFilter->GetOutputSpacing() << std::endl;
// std::cout <<"Resampler : Output Size "<< m_ResampleFilter->GetOutputSize()<< std::endl;
// Output Image
SetParameterOutputImage("out", m_ResampleFilter->GetOutput());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment