Skip to content

Commit

Permalink
test: adapt tests to new margins
Browse files Browse the repository at this point in the history
  • Loading branch information
adebardo committed Jan 21, 2025
1 parent 0d5bf1e commit 2703f0e
Show file tree
Hide file tree
Showing 57 changed files with 16 additions and 2 deletions.
12 changes: 11 additions & 1 deletion tests/applications/dense_matching/test_dense_matching_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,17 @@ def test_check_conf_with_error(
"min_elevation_offset": 20,
"max_elevation_offset": max_offset, # should be > min
"generate_confidence_intervals": confidence_intervals,
"loader_conf": {"pipeline": {"disparity": {}}},
"loader_conf": {
"input": {},
"pipeline": {
"matching_cost": {
"matching_cost_method": "census",
"window_size": 5,
"subpix": 1,
},
"disparity": {"disparity_method": "wta"},
},
},
}
with pytest.raises(expected_error):
_ = CensusMccnnSgm(conf)
Binary file not shown.
Binary file modified tests/data/ref_output/cloud1_ref_pandora
Binary file not shown.
Binary file modified tests/data/ref_output/color_end2end_gizeh_fill.tif
Binary file not shown.
Binary file modified tests/data/ref_output/color_end2end_paca_aux_filling.tif
Binary file not shown.
Binary file modified tests/data/ref_output/color_end2end_paca_aux_filling_1.tif
Binary file not shown.
Binary file modified tests/data/ref_output/color_end2end_paca_matches_filling.tif
Binary file not shown.
Binary file modified tests/data/ref_output/color_end2end_ventoux.tif
Binary file not shown.
Binary file modified tests/data/ref_output/color_end2end_ventoux_egm96.tif
Binary file not shown.
Binary file not shown.
Binary file modified tests/data/ref_output/color_end2end_ventoux_no_elevation.tif
Binary file not shown.
Binary file modified tests/data/ref_output/color_end2end_ventoux_no_srtm.tif
Binary file not shown.
Binary file modified tests/data/ref_output/color_end2end_ventoux_quality_stats.tif
Binary file not shown.
Binary file modified tests/data/ref_output/color_end2end_ventoux_with_color.tif
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/data/ref_output/dsm_end2end_gizeh_fill.tif
Binary file not shown.
Binary file modified tests/data/ref_output/dsm_end2end_paca_bulldozer.tif
Binary file not shown.
Binary file modified tests/data/ref_output/dsm_end2end_paca_matches_filling.tif
Binary file not shown.
Binary file modified tests/data/ref_output/dsm_end2end_ventoux.tif
Binary file not shown.
Binary file modified tests/data/ref_output/dsm_end2end_ventoux_egm96.tif
Binary file not shown.
Binary file modified tests/data/ref_output/dsm_end2end_ventoux_egm96_custom_geoid.tif
Binary file not shown.
Binary file modified tests/data/ref_output/dsm_end2end_ventoux_no_elevation.tif
Binary file not shown.
Binary file modified tests/data/ref_output/dsm_end2end_ventoux_no_srtm.tif
Binary file not shown.
Binary file modified tests/data/ref_output/dsm_end2end_ventoux_quality_stats.tif
Binary file not shown.
Binary file modified tests/data/ref_output/dsm_end2end_ventoux_with_classif.tif
Binary file not shown.
Binary file modified tests/data/ref_output/dsm_end2end_ventoux_with_color.tif
Binary file not shown.
Binary file modified tests/data/ref_output/dsm_end2end_ventoux_with_snap_to_img1.tif
Binary file not shown.
Binary file modified tests/data/ref_output/dsm_mean_end2end_ventoux_quality_stats.tif
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/data/ref_output/dsm_std_end2end_ventoux_quality_stats.tif
Binary file not shown.
Binary file modified tests/data/ref_output/epi_pc_X_end2end_ventoux_no_elevation.tif
Binary file not shown.
Binary file modified tests/data/ref_output/epi_pc_Y_end2end_ventoux_no_elevation.tif
Binary file not shown.
Binary file modified tests/data/ref_output/epi_pc_Z_end2end_ventoux_no_elevation.tif
Binary file not shown.
Binary file modified tests/data/ref_output/filling_end2end_gizeh_fill.tif
Binary file not shown.
Binary file modified tests/data/ref_output/filling_end2end_ventoux_no_elevation.tif
Binary file not shown.
Binary file modified tests/data/ref_output/mask_end2end_gizeh_fill.tif
Binary file not shown.
Binary file modified tests/data/ref_output/mask_end2end_paca_bulldozer.tif
Binary file not shown.
Binary file modified tests/data/ref_output/mask_end2end_paca_matches_filling.tif
Binary file not shown.
Binary file modified tests/data/ref_output/mask_end2end_ventoux_no_elevation.tif
Binary file not shown.
Binary file modified tests/data/ref_output/performance_map_end2end_ventoux_split.tif
Binary file not shown.
Binary file not shown.
6 changes: 5 additions & 1 deletion tests/pipelines/test_wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
# Third party imports
import pytest
from pandora.img_tools import get_metadata
from pandora.margins import Margins

# CARS imports
import cars.applications.dense_matching.dense_matching_tools as dense_match
Expand Down Expand Up @@ -111,8 +112,11 @@ def test_epipolar_pipeline(
global_disp_min = -19
global_disp_max = 15

# cumulative margins between sgm (40) and matching_cost (ws/2)
margins = Margins(42, 42, 42, 42)

initial_margins = dense_match.get_margins(
global_disp_min, global_disp_max, corr_cfg
margins, global_disp_min, global_disp_max
)
pandora_margins = initial_margins["left_margin"].values

Expand Down

0 comments on commit 2703f0e

Please sign in to comment.