Skip to content
Snippets Groups Projects
Commit 3d2f932a authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

DOC: add log information in OpticalCalibration application

parent 3fb2154c
No related branches found
No related tags found
No related merge requests found
...@@ -180,6 +180,8 @@ private: ...@@ -180,6 +180,8 @@ private:
MandatoryOff("radius"); MandatoryOff("radius");
SetDefaultParameterInt("radius", 2); SetDefaultParameterInt("radius", 2);
AddRAMParameter();
// Doc example parameter settings // Doc example parameter settings
SetDocExampleParameterValue("in", "QB_1_ortho.tif"); SetDocExampleParameterValue("in", "QB_1_ortho.tif");
SetDocExampleParameterValue("level", "toa"); SetDocExampleParameterValue("level", "toa");
...@@ -231,6 +233,7 @@ private: ...@@ -231,6 +233,7 @@ private:
{ {
case Level_TOA: case Level_TOA:
{ {
GetLogger()->Info("Compute Top of Atmosphere reflectance");
m_LuminanceToReflectanceFilter->SetUseClamp(IsParameterEnabled("clamp")); m_LuminanceToReflectanceFilter->SetUseClamp(IsParameterEnabled("clamp"));
m_LuminanceToReflectanceFilter->UpdateOutputInformation(); m_LuminanceToReflectanceFilter->UpdateOutputInformation();
...@@ -239,6 +242,7 @@ private: ...@@ -239,6 +242,7 @@ private:
break; break;
case Level_TOC: case Level_TOC:
{ {
GetLogger()->Info("Compute Top of Canopy reflectance");
m_ReflectanceToSurfaceReflectanceFilter->SetIsSetAtmosphericRadiativeTerms(false); m_ReflectanceToSurfaceReflectanceFilter->SetIsSetAtmosphericRadiativeTerms(false);
m_ReflectanceToSurfaceReflectanceFilter->SetUseGenerateParameters(true); m_ReflectanceToSurfaceReflectanceFilter->SetUseGenerateParameters(true);
m_ReflectanceToSurfaceReflectanceFilter->UpdateOutputInformation(); m_ReflectanceToSurfaceReflectanceFilter->UpdateOutputInformation();
...@@ -339,6 +343,7 @@ private: ...@@ -339,6 +343,7 @@ private:
} }
else else
{ {
GetLogger()->Info("Clamp values between [0%,100%]");
m_ClampFilter->SetInput(m_ReflectanceToSurfaceReflectanceFilter->GetOutput()); m_ClampFilter->SetInput(m_ReflectanceToSurfaceReflectanceFilter->GetOutput());
m_ClampFilter->ClampOutside(0.0, 1.0); m_ClampFilter->ClampOutside(0.0, 1.0);
m_ScaleFilter->SetInput(m_ClampFilter->GetOutput()); m_ScaleFilter->SetInput(m_ClampFilter->GetOutput());
...@@ -348,7 +353,14 @@ private: ...@@ -348,7 +353,14 @@ private:
} }
// Output Image // Output Image
const double scale = IsParameterEnabled("milli") ? 1000.0 : 1.0; double scale = 1.0;
if (IsParameterEnabled("milli"))
{
GetLogger()->Info("Use milli-reflectance");
scale = 1000.;
}
m_ScaleFilter->SetCoef(scale); m_ScaleFilter->SetCoef(scale);
SetParameterOutputImage("out", m_ScaleFilter->GetOutput()); SetParameterOutputImage("out", m_ScaleFilter->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