Commit 1cb789b9c1b347842875ded91a3805fd184ef2c9

Authored by Jordi Inglada
1 parent bf213b22

BUG: wrong band name

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
include/iota2FeatureExtraction.h
... ... @@ -118,7 +118,7 @@ public:
118 118 auto swir = *(inIt+m_SWIRIndex-1);
119 119 auto ndvi = std::fabs(nir+red)<10e-6?
120 120 ValueType{0}:(nir-red)/(nir+red);
121   - auto ndwi = std::fabs(swir+red)<10e-6?
  121 + auto ndwi = std::fabs(swir+nir)<10e-6?
122 122 ValueType{0}:(swir-nir)/(swir+nir);
123 123 decltype(inVec) tmpVec(m_ComponentsPerDate);
124 124 std::transform(inIt, inIt+m_ComponentsPerDate,tmpVec.begin(),
... ...