Skip to content
Snippets Groups Projects
Commit dcdd3533 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

TEST: ensure output has the same origin as deformation field

parent d76258da
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,10 @@ int otbStreamingWarpImageFilter(int argc, char* argv[])
typedef itk::Vector<PixelType, 2> DisplacementValueType;
typedef otb::Image<DisplacementValueType, Dimension> DisplacementFieldType;
// Change default output origin
ImageType::PointType origin;
origin.Fill(0.5);
// Warper
typedef otb::StreamingWarpImageFilter<ImageType, ImageType, DisplacementFieldType> ImageWarperType;
......@@ -70,6 +74,7 @@ int otbStreamingWarpImageFilter(int argc, char* argv[])
warper->SetMaximumDisplacement(maxDisplacement);
warper->SetInput(reader->GetOutput());
warper->SetDisplacementField(displacementReader->GetOutput());
warper->SetOutputOrigin(origin);
// Writing
writer->SetInput(warper->GetOutput());
......
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