Additional tests for the ExtractROI application
Summary
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. it is also important to test the case where the application works correctly. This MR adds the 9 following tests:
- Mode standard (test with
sizex
sizey
startx
andstarty
) + cl parameter - 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
andmode.extent.lry
:- case with unit =
pxl
- case with unit =
phy
- case with unit =
lonlat
- case with unit =
- Mode Radius (test with
radius.r
radius.cs
andradius.cy
:- case with center unit
pxl
and radius unitpxl
- case with center unit
phy
and radius unitphy
- case with center unit
lonlat
and radius unitpxl
- case with center unit
This MR also corrects a bug in fit vector mode, and in the extent mode with physical units, where some variable were redefined in a scope.
Closes issue #1931 (closed)
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
- Optionally, run
git diff develop... -U0 --no-color | clang-format-diff.py -p1 -i
on latest changes and commit
Edited by Cédric Traizet