Skip to content
Snippets Groups Projects
Commit aee6eb9c authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

Correction OrthoFusion

parent d986a462
No related branches found
No related tags found
No related merge requests found
...@@ -97,6 +97,8 @@ int main( int argc, char* argv[] ) ...@@ -97,6 +97,8 @@ int main( int argc, char* argv[] )
// Software Guide : BeginCodeSnippet // Software Guide : BeginCodeSnippet
typedef otb::Image<unsigned int, 2> ImageType; typedef otb::Image<unsigned int, 2> ImageType;
typedef otb::VectorImage<unsigned int, 2> VectorImageType; typedef otb::VectorImage<unsigned int, 2> VectorImageType;
typedef otb::Image<double, 2> DoubleImageType;
typedef otb::VectorImage<double, 2> DoubleVectorImageType;
typedef otb::ImageFileReader<ImageType> ReaderType; typedef otb::ImageFileReader<ImageType> ReaderType;
typedef otb::ImageFileReader<VectorImageType> VectorReaderType; typedef otb::ImageFileReader<VectorImageType> VectorReaderType;
typedef otb::StreamingImageFileWriter<VectorImageType> WriterType; typedef otb::StreamingImageFileWriter<VectorImageType> WriterType;
...@@ -128,10 +130,10 @@ int main( int argc, char* argv[] ) ...@@ -128,10 +130,10 @@ int main( int argc, char* argv[] )
typedef otb::UtmInverseProjection utmMapProjectionType ; typedef otb::UtmInverseProjection utmMapProjectionType ;
typedef otb::OrthoRectificationFilter<ImageType, ImageType, typedef otb::OrthoRectificationFilter<ImageType, DoubleImageType,
utmMapProjectionType> OrthoRectifFilterType ; utmMapProjectionType> OrthoRectifFilterType ;
typedef otb::PerBandVectorImageFilter<VectorImageType, typedef otb::PerBandVectorImageFilter<VectorImageType,
VectorImageType, OrthoRectifFilterType> VectorOrthoRectifFilterType; DoubleVectorImageType, OrthoRectifFilterType> VectorOrthoRectifFilterType;
OrthoRectifFilterType::Pointer orthoRectifPAN = OrthoRectifFilterType::Pointer orthoRectifPAN =
OrthoRectifFilterType::New(); OrthoRectifFilterType::New();
...@@ -201,7 +203,7 @@ int main( int argc, char* argv[] ) ...@@ -201,7 +203,7 @@ int main( int argc, char* argv[] )
// Software Guide : BeginCodeSnippet // Software Guide : BeginCodeSnippet
typedef otb::SimpleRcsPanSharpeningFusionImageFilter typedef otb::SimpleRcsPanSharpeningFusionImageFilter
<ImageType,VectorImageType,VectorImageType> FusionFilterType; <DoubleImageType,DoubleVectorImageType,VectorImageType> FusionFilterType;
FusionFilterType::Pointer fusion = FusionFilterType::New(); FusionFilterType::Pointer fusion = FusionFilterType::New();
fusion->SetPanInput(orthoRectifPAN->GetOutput()); fusion->SetPanInput(orthoRectifPAN->GetOutput());
fusion->SetXsInput(orthoRectifXSVector->GetOutput()); fusion->SetXsInput(orthoRectifXSVector->GetOutput());
...@@ -225,7 +227,7 @@ int main( int argc, char* argv[] ) ...@@ -225,7 +227,7 @@ int main( int argc, char* argv[] )
writer->SetTilingStreamDivisions(); writer->SetTilingStreamDivisions();
writer->Update(); writer->Update();
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment