Skip to content
Snippets Groups Projects
Commit 57a2a63f authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

COMP: initialization in the same order as declaration

parent 45c3456d
Branches
Tags
No related merge requests found
......@@ -213,8 +213,8 @@ protected:
m_ZenithalSolarAngle(120.),//invalid value which will lead to negative radiometry
m_FluxNormalizationCoefficient(1.),
m_IsSetFluxNormalizationCoefficient(false),
m_Day(-1),
m_Month(-1)
m_Day(0),
m_Month(0)
{
m_Alpha.SetSize(0);
m_Beta.SetSize(0);
......@@ -239,12 +239,12 @@ protected:
m_Beta = imageMetadataInterface->GetPhysicalBias(this->GetInput()->GetMetaDataDictionary());
}
if (m_Day == -1)
if (m_Day == 0)
{
m_Day = imageMetadataInterface->GetDay(this->GetInput()->GetMetaDataDictionary());
}
if (m_Month == -1)
if (m_Month == 0)
{
m_Month = imageMetadataInterface->GetMonth(this->GetInput()->GetMetaDataDictionary());
}
......
......@@ -192,8 +192,8 @@ protected:
LuminanceToReflectanceImageFilter():
m_ZenithalSolarAngle(120.0),//invalid value which will lead to negative radiometry
m_FluxNormalizationCoefficient(1.),
m_Month(-1),
m_Day(-1),
m_Day(0),
m_Month(0),
m_IsSetFluxNormalizationCoefficient(false)
{
m_SolarIllumination.SetSize(0);
......@@ -206,12 +206,12 @@ protected:
virtual void BeforeThreadedGenerateData(void)
{
ImageMetadataInterface::Pointer imageMetadataInterface= ImageMetadataInterface::New();
if (m_Day == -1)
if (m_Day == 0)
{
m_Day = imageMetadataInterface->GetDay(this->GetInput()->GetMetaDataDictionary());
}
if (m_Month == -1)
if (m_Month == 0)
{
m_Month = imageMetadataInterface->GetMonth(this->GetInput()->GetMetaDataDictionary());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment