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

BUG: Mantis-1328: add fill value parameter in Superimpose

parent 23129321
Branches
Tags
No related merge requests found
...@@ -106,6 +106,11 @@ private: ...@@ -106,6 +106,11 @@ private:
SetDefaultParameterFloat("lms", 4.); SetDefaultParameterFloat("lms", 4.);
MandatoryOff("lms"); 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"); AddParameter(ParameterType_OutputImage, "out", "Output image");
SetParameterDescription("out","Output reprojected image."); SetParameterDescription("out","Output reprojected image.");
...@@ -210,8 +215,8 @@ private: ...@@ -210,8 +215,8 @@ private:
FloatVectorImageType::PixelType defaultValue; FloatVectorImageType::PixelType defaultValue;
itk::NumericTraits<FloatVectorImageType::PixelType>::SetLength(defaultValue, movingImage->GetNumberOfComponentsPerPixel()); itk::NumericTraits<FloatVectorImageType::PixelType>::SetLength(defaultValue, movingImage->GetNumberOfComponentsPerPixel());
defaultValue.Fill(GetParameterFloat("fv"));
if(GetParameterString("mode")=="default") if(GetParameterString("mode")=="default")
{ {
if(IsParameterEnabled("lms")) if(IsParameterEnabled("lms"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment