Add support for stitching scans (https://docs.opencv.org/4.x/d2/d8d/classcv_1_1Stitcher.html#a114713924ec05a0309f4df7e918c0324ac706a6a118a4a648fef8b2fca5950e2a):
Howto
The value is selected here:
|
auto stitcher = stitcher::Stitcher::Create(cv::Stitcher::PANORAMA); |
Extend stitching user options with a new enum (panorama / scans):
|
struct StitchUserOptions { |
- the new enum will need a
Label function and a constant array with all values, please check the other examples
Add a widget to select the value in gui (use utils::imgui::ComboBox for selecting an enum value):
|
Action DrawStitchOptionsMenu(pipeline::StitchAlgorithmOptions* stitch_options, |
If Scans mode is selected
- disable projection types widget + wave correction in the gui
- add an if statement in the Stitch function when setting up stitcher and set the values according to stitcher.cc
Stretch goal
Test on real scans, compare the two modes and add the images to the PR.
Add support for stitching scans (https://docs.opencv.org/4.x/d2/d8d/classcv_1_1Stitcher.html#a114713924ec05a0309f4df7e918c0324ac706a6a118a4a648fef8b2fca5950e2a):
Howto
The value is selected here:
xpano/xpano/algorithm/algorithm.cc
Line 234 in dee2e45
Extend stitching user options with a new enum (panorama / scans):
xpano/xpano/algorithm/options.h
Line 82 in dee2e45
Labelfunction and a constant array with all values, please check the other examplesAdd a widget to select the value in gui (use
utils::imgui::ComboBoxfor selecting an enum value):xpano/xpano/gui/panels/sidebar.cc
Line 301 in dee2e45
If Scans mode is selected
Stretch goal
Test on real scans, compare the two modes and add the images to the PR.