Commit 0d1e8292790593f74448cc72dbf2758d5a646589

Authored by Jordi Inglada
1 parent 4d530ed7

BUG: forgot to take into account the use of the mask

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/Library/phenoFunctions.h
... ... @@ -262,7 +262,7 @@ public:
262 262 tmpix.Fill(typename PixelType::ValueType{0});
263 263  
264 264 // If the mask says all dates are valid, keep the original value
265   - if(tmp_mask == tmpix && fit_only_invalid) return pix;
  265 + if(tmp_mask == tmpix && fit_only_invalid && use_mask) return pix;
266 266  
267 267 VectorType vec(nbDates);
268 268 VectorType mv(nbDates);
... ...