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

ENH : replace method SetSize by SetOutputSize due to the StreamingResampleImageFilter replacement

parent 0b5cdcf5
Branches
Tags
No related merge requests found
...@@ -57,7 +57,7 @@ int otbStreamingResampleImageFilter(int argc, char * argv[]) ...@@ -57,7 +57,7 @@ int otbStreamingResampleImageFilter(int argc, char * argv[])
StreamingResampleImageFilterType::SizeType size; StreamingResampleImageFilterType::SizeType size;
size[0] = 600; size[0] = 600;
size[1] = 600; size[1] = 600;
resampler->SetSize(size); resampler->SetOutputSize(size);
// Transformation creation // Transformation creation
TransformType::OutputVectorType translation; TransformType::OutputVectorType translation;
......
...@@ -26,6 +26,8 @@ ...@@ -26,6 +26,8 @@
#include "itkTranslationTransform.h" #include "itkTranslationTransform.h"
#include "itkNearestNeighborInterpolateImageFunction.h" #include "itkNearestNeighborInterpolateImageFunction.h"
#include "otbStreamingTraits.h" #include "otbStreamingTraits.h"
#include "itkResampleImageFilter.h"
int otbStreamingResampleImageFilterCompareWithITK(int argc, char * argv[]) int otbStreamingResampleImageFilterCompareWithITK(int argc, char * argv[])
{ {
...@@ -81,7 +83,7 @@ int otbStreamingResampleImageFilterCompareWithITK(int argc, char * argv[]) ...@@ -81,7 +83,7 @@ int otbStreamingResampleImageFilterCompareWithITK(int argc, char * argv[])
size[0] = sizeXOutputImage; size[0] = sizeXOutputImage;
size[1] = sizeYOutputImage; size[1] = sizeYOutputImage;
resamplerITK->SetSize(size); resamplerITK->SetSize(size);
resamplerOTB->SetSize(size); resamplerOTB->SetOutputSize(size);
// Set Interpolation // Set Interpolation
NNInterpolatorType::Pointer interpolator = NNInterpolatorType::New(); NNInterpolatorType::Pointer interpolator = NNInterpolatorType::New();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment