Skip to content

REFAC: 1778: Reduced size of input-data for dmTvFineRegistrationImageFilterTestWithMeanSquare

Summary

Refactoring dmTvFineRegistrationImageFilterTestWithMeanSquare in order to optimize processing time such as described in #1778.

Rationale

Test does not need a big samle of input-data to be representative. Reducing to very small size of input-data saves a lot of computation time.

Implementation Details

Classes and files

Modified test .cmake file and baseline expected results.

Note : this test inputs 2 images and plugs them into extract-ROI filters [1]. Even if its not the bottleneck of this test, they could be removed by directly reducing input-data in baseline.

Additional notes

Used test results on 32x32 image in order to update baseline expected data. Checked consistency of expected data against previous version using the CompareImages OTB-Application (perfect match).

Processing time decreases from ~20s (see #1778 timings) to ~4.5s (development platform).

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
Edited by Stéphane Albert

Merge request reports

Loading