En raison du déménagement des baies serveurs, les services gitlab.irstea.fr et mattermost.irstea.fr seront interrompus le samedi 2 octobre 2021 au matin. Ils devraient revenir à la normale dans la journée.

Commit 7d9dfe91 authored by Gaetano Raffaele's avatar Gaetano Raffaele
Browse files

Removed gapfilling from landscapefragmentationmetric app.

parent 91f03ef0
......@@ -78,17 +78,17 @@ private:
ClearApplications();
// Add applications
AddApplication("ImageTimeSeriesGapFilling", "gapfillling" , "Image time series gap filling" );
//AddApplication("ImageTimeSeriesGapFilling", "gapfillling" , "Image time series gap filling" );
AddApplication("DimensionalityReduction" , "pca" , "Principal component analysis" );
// Fixed parameters
GetInternalApplication("gapfillling")->SetParameterString("it" , "linear" , false );
GetInternalApplication("gapfillling")->SetParameterInt ("comp" , 1 , false );
//GetInternalApplication("gapfillling")->SetParameterString("it" , "linear" , false );
//GetInternalApplication("gapfillling")->SetParameterInt ("comp" , 1 , false );
GetInternalApplication("pca" )->SetParameterString("method" , "pca" , false );
// Shared parameters
ShareParameter("mask" , "gapfillling.mask" , "Mask" , "Input time series mask" );
ShareParameter("id" , "gapfillling.id" , "DatesFile" , "Input time series dates file" );
//ShareParameter("mask" , "gapfillling.mask" , "Mask" , "Input time series mask" );
//ShareParameter("id" , "gapfillling.id" , "DatesFile" , "Input time series dates file" );
// Input NDVI time series images
AddParameter(ParameterType_InputImageList, "ndvits", "Input NDVI time series images");
......@@ -160,13 +160,14 @@ private:
FloatVectorImageType::Pointer stack = m_NDVIConcatener->GetOutput();
// Gapfilling
GetInternalApplication("gapfillling")->SetParameterInputImage("in",
static_cast<FloatVectorImageType*> (stack.GetPointer()));
ExecuteInternal("gapfillling");
//GetInternalApplication("gapfillling")->SetParameterInputImage("in",
// static_cast<FloatVectorImageType*> (stack.GetPointer()));
//ExecuteInternal("gapfillling");
// PCA
GetInternalApplication("pca")->SetParameterInputImage("in",
GetInternalApplication("gapfillling")->GetParameterOutputImage("out"));
static_cast<FloatVectorImageType*> (stack.GetPointer()));
//GetInternalApplication("gapfillling")->GetParameterOutputImage("out"));
ExecuteInternal("pca");
// Extract channels
......
......@@ -93,7 +93,7 @@ public:
inline unsigned int GetOutputSize() const { return nbOfYears; }
constexpr std::size_t OutputSize(std::array<long unsigned int, 1ul>&) const
constexpr std::size_t OutputSize(std::array<size_t, 1ul>&) const
{
return nbOfYears;
}
......@@ -369,7 +369,7 @@ public:
static constexpr std::size_t outputPixelSize{1};
std::size_t OutputSize(std::array<long unsigned int, 1ul>&) const
std::size_t OutputSize(std::array<size_t, 1ul>&) const
{
return numberOfComponentsPerPixel;
}
......@@ -523,7 +523,7 @@ public:
static constexpr std::size_t outputPixelSize{1};
std::size_t OutputSize(std::array<long unsigned int, 1ul>&) const
std::size_t OutputSize(std::array<size_t, 1ul>&) const
{
return numberOfComponentsPerPixel;
}
......@@ -609,7 +609,7 @@ public:
}
~RainfallEstimatedNDVIResiduesFunctor(){}
std::size_t OutputSize(std::array<long unsigned int, 2ul> Inputs) const
std::size_t OutputSize(std::array<size_t, 2ul> Inputs) const
{
unsigned int nbComp = std::accumulate(Inputs.begin(),Inputs.end(),0)/2;
return nbComp;
......@@ -800,7 +800,7 @@ public:
static constexpr std::size_t outputPixelSize{1};
std::size_t OutputSize(std::array<long unsigned int, 3ul>&) const
std::size_t OutputSize(std::array<size_t, 3ul>&) const
{
return numberOfComponentsPerPixel;
}
......@@ -925,7 +925,7 @@ public:
static constexpr std::size_t outputPixelSize{1};
std::size_t OutputSize(std::array<long unsigned int, 2ul>&) const
std::size_t OutputSize(std::array<size_t, 2ul>&) const
{
return numberOfComponentsPerPixel;
}
......
......@@ -6,7 +6,6 @@ otb_module(NDVITimeSeries
OTBCommon
OTBApplicationEngine
TimeSeriesUtils
OTBTemporalGapFilling
LSGRM
TEST_DEPENDS
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment