Skip to content

BUG: Fix nodata handling in StreamingStatisticsMapFromLabelImageFilter

Laurențiu Nicola requested to merge fix-nodata-statistics into develop

Summary

StreamingStatisticsMapFromLabelImageFilter doesn't handle no data values properly.

Rationale

Fixes #2019

Implementation Details

We produce the no data value for min and max when no valid pixels were found.

Additional notes

I'm not really a fan of the current accumulator structure that's used in this and related filters. It has two operations:

  • add a pixel
  • merge two accumulators

I would prefer having:

  • make a "zero" accumulator
  • merge two accumulators

But that's another story.

Copyright

The copyright owner is Laurențiu Nicola (CS ROMANIA) and has signed the ORFEO ToolBox Contributor License Agreement.


Check before merging:

  • All discussions are resolved
  • At least 2 👍 votes from core developers, no 👎 vote.
  • The feature branch is (reasonably) up-to-date with the base branch
  • Dashboard is green
  • Copyright owner has signed the ORFEO ToolBox Contributor License Agreement
  • Optionally, run git diff develop... -U0 --no-color | clang-format-diff.py -p1 -i on latest changes and commit

Merge request reports

Loading