diff --git a/Modules/Applications/AppProjection/app/otbSuperimpose.cxx b/Modules/Applications/AppProjection/app/otbSuperimpose.cxx index 3293c3ad1f229e6af4ff39755c11f348e869038a..a2fc5e2549333380e9b2cca755f2cacf3f43eeea 100644 --- a/Modules/Applications/AppProjection/app/otbSuperimpose.cxx +++ b/Modules/Applications/AppProjection/app/otbSuperimpose.cxx @@ -106,6 +106,11 @@ private: SetDefaultParameterFloat("lms", 4.); MandatoryOff("lms"); + AddParameter(ParameterType_Float, "fv", "Fill Value"); + SetParameterDescription("fv","Fill value for area outside the reprojected image"); + SetDefaultParameterFloat("fv", 0.); + MandatoryOff("fv"); + AddParameter(ParameterType_OutputImage, "out", "Output image"); SetParameterDescription("out","Output reprojected image."); @@ -210,8 +215,8 @@ private: FloatVectorImageType::PixelType defaultValue; itk::NumericTraits<FloatVectorImageType::PixelType>::SetLength(defaultValue, movingImage->GetNumberOfComponentsPerPixel()); + defaultValue.Fill(GetParameterFloat("fv")); - if(GetParameterString("mode")=="default") { if(IsParameterEnabled("lms"))