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

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

parent 53410494
No related branches found
No related tags found
No related merge requests found
......@@ -64,7 +64,7 @@ int otbExtractROIResample(int argc, char* argv[])
ResampleType::Pointer filterResample = ResampleType::New();
filterResample->SetInput(reader->GetOutput());
filterResample->SetTransform(transform);
filterResample->SetSize(reader->GetOutput()->GetLargestPossibleRegion().GetSize());
filterResample->SetOutputSize(reader->GetOutput()->GetLargestPossibleRegion().GetSize());
typedef otb::ExtractROI<PixelType, PixelType> ExtractROIType;
ExtractROIType::Pointer filterResampleRoi = ExtractROIType::New();
......
......@@ -71,7 +71,7 @@ int otbProlateValidationTest(int argc, char * argv[])
StreamingResampleImageFilterType::SizeType size;
size[0] = atoi(argv[5]);
size[1] = atoi(argv[5]);
proresampler->SetSize(size);
proresampler->SetOutputSize(size);
proresampler->SetOutputOrigin(origin);
proresampler->SetOutputSpacing(newSpacing);
......
......@@ -22,6 +22,7 @@
#include "otbImageFileReader.h"
#include "otbStreamingImageFileWriter.h"
#include "itkTranslationTransform.h"
#include "itkResampleImageFilter.h"
int otbResampleSLCImage(int argc, char * argv[])
{
......
......@@ -76,7 +76,7 @@ int otbOrthoRectificationFilter(int argc, char* argv[])
ImageType::SizeType size;
size[0] = atoi(argv[5]); // X size
size[1] = atoi(argv[6]); //Y size
orthoRectifFilter->SetSize(size);
orthoRectifFilter->SetOutputSize(size);
ImageType::SpacingType spacing;
spacing[0] = atof(argv[7]);
......
......@@ -86,7 +86,7 @@ int otbOrthoRectificationFilterWithDEM(int argc, char* argv[])
ImageType::SizeType size;
size[0] = atoi(argv[5]); //X size.
size[1] = atoi(argv[6]); //Y size
orthoRectifFilter->SetSize(size);
orthoRectifFilter->SetOutputSize(size);
ImageType::SpacingType spacing;
spacing[0] = atof(argv[7]);
......
......@@ -77,7 +77,7 @@ int otbOrthoRectificationMonoThreadFilter(int argc, char* argv[])
ImageType::SizeType size;
size[0] = atoi(argv[5]); // X size
size[1] = atoi(argv[6]); //Y size
orthoRectifFilter->SetSize(size);
orthoRectifFilter->SetOutputSize(size);
ImageType::SpacingType spacing;
spacing[0] = atof(argv[7]);
......
......@@ -121,7 +121,7 @@ int otbRegionProjectionResampler(int argc, char* argv[])
resampler->SetOutputSpacing(spacing);
resampler->SetOutputOrigin(origin);
resampler->SetSize(region.GetSize());
resampler->SetOutputSize(region.GetSize());
resampler->SetOutputStartIndex(start);
//Connect pipeline
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment