BUG: Fix nodata handling in StreamingStatisticsMapFromLabelImageFilter
- Feb 05, 2020
-
-
Laurențiu Nicola authored
-
StreamingStatisticsMapFromLabelImageFilter
doesn't handle no data values properly.
Fixes #2019
We produce the no data value for min
and max
when no valid pixels were found.
I'm not really a fan of the current accumulator structure that's used in this and related filters. It has two operations:
I would prefer having:
But that's another story.
The copyright owner is Laurențiu Nicola (CS ROMANIA) and has signed the ORFEO ToolBox Contributor License Agreement.
Check before merging:
git diff develop... -U0 --no-color | clang-format-diff.py -p1 -i
on latest changes and commit