Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • otb otb
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 212
    • Issues 212
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 14
    • Merge requests 14
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Main Repositories
  • otbotb
  • Issues
  • #1976
Closed
Open
Issue created Oct 09, 2019 by Julien Michel@jmichelReporter

ZonalStatistics app inbv parameter is not taken into account in stats filter

Description

ZonalStatistics app does not filter out nodata value set through the inbv parameter.

Steps to reproduce

See: https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/blob/develop/Modules/Filtering/Statistics/include/otbStreamingStatisticsMapFromLabelImageFilter.h#L100

And implementation of UpdateValue:

https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/blob/develop/Modules/Filtering/Statistics/include/otbStreamingStatisticsMapFromLabelImageFilter.h#L126

In case a nodata is found, the count of pixel is not incremented but remaining stats are.

I have a patch for that (see upcoming MR).

It would be better to update filter test to also test the nodata case.

Configuration information

7.0.0 RC1

Assignee
Assign to
Time tracking