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

ENH: simplify input of Pansharpening appli with Bayesian method

parent a23a9bfd
No related branches found
Tags 3.16-rc1
No related merge requests found
......@@ -116,9 +116,6 @@ private:
AddChoice("method.bayes", "Bayesian");
SetParameterDescription("method.bayes", "Bayesian fusion.");
AddParameter(ParameterType_InputImage, "method.bayes.interpxs", "Input interpolated XS Image");
SetParameterDescription("method.bayes.interpxs"," Input interpolated XS image.");
AddParameter(ParameterType_Float, "method.bayes.lambda", "Weight");
SetParameterDescription("method.bayes.lambda", "Set the weighting value.");
SetMinimumParameterFloatValue("method.bayes.lambda", 0);
......@@ -219,9 +216,7 @@ private:
filter->SetMultiSpect(xs);
FloatVectorImageType* interpXS = GetParameterImage("method.bayes.interpxs");
filter->SetMultiSpectInterp(interpXS);
filter->SetMultiSpectInterp(xs);
filter->SetPanchro(panchro);
filter->UpdateOutputInformation();
......
......@@ -27,11 +27,10 @@ OTB_TEST_APPLICATION(NAME apTvFuPansharpening_LMVM
OTB_TEST_APPLICATION(NAME apTvFuPansharpening_Bayes
APP Pansharpening
OPTIONS -inp ${INPUTDATA}/panchro.tif
-inxs ${INPUTDATA}/multiSpect.tif
-inxs ${INPUTDATA}/multiSpectInterp.tif
-out ${TEMP}/apTvFuPanSharpeningBayes.tif double
-method bayes
-method.bayes.interpxs ${INPUTDATA}/multiSpectInterp.tif
VALID --compare-image ${EPSILON_6}
${BASELINE}/fuTvBayesianFusion.tif
${BASELINE}/apTvFuPanSharpeningBayes.tif
${TEMP}/apTvFuPanSharpeningBayes.tif
)
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