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 207
    • Issues 207
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • 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
  • Merge requests
  • !373

Refactor FunctorImageFilter with neighborhood

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Cédric Traizet requested to merge functor_image_filter_neighborhood into develop Feb 04, 2019
  • Overview 7
  • Commits 8
  • Pipelines 0
  • Changes 9

Summary

FunctorImageFilter now takes const itk::ConstNeighborhoodIterator<Image<T>> & instead of itk::neighborhood<T>. The localRxDetection application now uses a FunctorImageFilter.

Rationale

Currently, it is possible to use itk::Neighborhood<T> as input of the functor of a FunctorImageFilter. This functionality has two problems :

  • There is a bug with the boundaryCondition (see #1802 (closed))

  • Internally a ConstNeighborhoodIterator is used to run through this image and at each pixel location the underlying neighborhood is copied (via the GetNeighborhood() method) and passed to the functor which is not efficient.

In this merge request the (const) itk::neighborhood<T> (&) parameter is replaced by a const itk::ConstNeighborhoodIterator<Image<T>> &. This signature is less elegant, but it solves the two problems mentioned above. Note that we can only use a const reference as parameter. The const prevents the user (the creator of the functor) to increment the iterator.

Also this merge request replaces the LocalRxDetectorFilter by a functorImageFilter in the localRxDetection application (recently merge, see !353 (merged))

With this modification, we will be able to move forward with the functorImageFilter refactoring (see #1821).

Copyright

The copyright owner is CNES 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
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: functor_image_filter_neighborhood