Skip to content
Snippets Groups Projects

BUG: Fix nodata handling in StreamingStatisticsMapFromLabelImageFilter

Merged 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 :thumbsup: votes from core developers, no :thumbsdown: 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

Merge request pipeline #3582 failed

Merge request pipeline failed for 3d83b7db

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading