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
  • Issues
  • #1931
Closed
Open
Issue created Jul 03, 2019 by Cédric Traizet@ctraizetDeveloper

ExtractROI application testing

Currently, the ExtractROI application is only tested in the case where the output is the same as the input, for example if its parameters are not compliant with the input image. The tests are:

  • apTvUtExtractROISizeTooBig : sizex is too big,
  • apTvUtExtractROISizeTooBigExtent : mode.extent.lrx is not in the input image,
  • apTvUtExtractROISizeNULL : sizex is 0,
  • apTvUtExtractROIRightInputFile : no parameters given,
  • apTvUtExtractROIComplexInputFile : no parameters given, complex input.

These tests are useful, but it is even more important to test the case where the application works correctly. I suggest to add the 9 following tests:

  • Mode standard (test with sizex sizey startx and starty)
  • Mode Fit:
    • case with a reference image
    • case with a reference vector
  • Mode Extent (test with mode.extent.ulx, mode.extent.uly ,mode.extent.lrx and mode.extent.lry:
    • case with unit = pxl
    • case with unit = phy
    • case with unit = lonlat
  • Mode Radius (test with radius.r radius.cs and radius.cy :
    • case with center unit pxl and radius unit pxl
    • case with center unit phy and radius unit phy
    • case with center unit lonlat and radius unit pxl Also set the channel parameter (cl) for these tests, to also test this functionality.

This is a lot of new tests, but if we choose the parameters smartly we can use only one baseline for all tests!

ExtractROI is probably one of the most used application of the library, so I think it deserves to be tested exhaustively (radius and extent modes have been broken for a while before !537 (merged)). This feature request is not about testing the MultiChannelExtractROI filter, but testing the code specific to the application (parameter management).

Edited Jul 03, 2019 by Cédric Traizet
Assignee
Assign to
Time tracking