Skip to content
Snippets Groups Projects
Commit 0ae7b65f authored by Julien Michel's avatar Julien Michel
Browse files

TEST: Attempt to fix test prTvGCPsToRPCSensorModelImageFilterAndOrtho

parent 24e15700
No related branches found
No related tags found
No related merge requests found
......@@ -51,6 +51,7 @@ int otbGCPsToRPCSensorModelImageFilterAndOrtho(int argc, char* argv[])
ReaderType::Pointer reader = ReaderType::New();
reader->SetFileName(infname);
reader->UpdateOutputInformation();
GCPsToSensorModelFilterType::Pointer rpcEstimator = GCPsToSensorModelFilterType::New();
rpcEstimator->SetInput(reader->GetOutput());
......@@ -116,6 +117,10 @@ int otbGCPsToRPCSensorModelImageFilterAndOrtho(int argc, char* argv[])
utmMapProjection->SetHemisphere(argv[10][0]);
orthoRectifFilter->SetMapProjection(utmMapProjection);
ImageType::PixelType no_data(reader->GetOutput()->GetNumberOfComponentsPerPixel());
orthoRectifFilter->SetEdgePaddingValue(no_data);
// Deformation Field spacing
ImageType::SpacingType gridSpacing;
gridSpacing[0] = atof(argv[11]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment