Commit dcdd3533 authored by Guillaume Pasero's avatar Guillaume Pasero

TEST: ensure output has the same origin as deformation field

parent d76258da
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment