publicbooleanterr_par_restore=false;// restore parameters from file
publicbooleanterr_par_restore=false;// restore parameters from file
publicintterr_step_restore=2;// If restore, start with step after restored
publicintterr_step_restore=2;// If restore, start with step after restored
// terrain/vegetation parameters
// terrain/vegetation parameters
@Deprecated
publicbooleanterr_um_en=true;
publicbooleanterr_um_en=true;
publicdoubleterr_um_sigma=1.0;
// @Deprecated
publicdoubleterr_um_weight=0.8;
publicdoubleterr_um_sigma=1.0;// use for render
// @Deprecated
publicdoubleterr_um_weight=0.8;// use for render
@Deprecated
publicdoubleterr_nan_tolerance=0.001;// set undefined terrain (out of capture area) to nan, it is almost zero after UM. if !terr_um_en will be forced ==0.0
publicdoubleterr_nan_tolerance=0.001;// set undefined terrain (out of capture area) to nan, it is almost zero after UM. if !terr_um_en will be forced ==0.0
publicintterr_nan_grow=20;// grow undefined scenes terrain after detection
publicintterr_nan_grow=20;// grow undefined scenes terrain after detection
publicintterr_shrink_veget=20;// shrink accumulated vegetation for filling terrain
publicintterr_shrink_veget=20;// shrink accumulated vegetation for filling terrain
...
@@ -811,6 +815,7 @@ min_str_neib_fpn 0.35
...
@@ -811,6 +815,7 @@ min_str_neib_fpn 0.35
publicdoubleterr_alpha_weight_center=1.5;// weight of center alpha pixel relative to each of the 4 ortho ones
publicdoubleterr_alpha_weight_center=1.5;// weight of center alpha pixel relative to each of the 4 ortho ones
publicbooleanterr_en_holes=true;// enable small holes // maybe second pass after good fit with vegetation and search for correct offset?
publicbooleanterr_en_holes=true;// enable small holes // maybe second pass after good fit with vegetation and search for correct offset?
publicdoubleterr_alpha_mm_hole=0.1;// NaN to disable. Local "almost minimum" (lower than this fraction between min and max neighbor) is not subject to alpha_lpf
publicdoubleterr_alpha_mm_hole=0.1;// NaN to disable. Local "almost minimum" (lower than this fraction between min and max neighbor) is not subject to alpha_lpf
publicdoubleterr_alpha_diff_hole=0.01;// Minimal alpha difference between min and max neighbor to be considered a hole
publicdoubleterr_terr_lpf=0.1;// pull terrain to average of 4 neighbors
publicdoubleterr_terr_lpf=0.1;// pull terrain to average of 4 neighbors
publicdoubleterr_veget_lpf=10.0;// pull vegetation to average of 4 neighbors
publicdoubleterr_veget_lpf=10.0;// pull vegetation to average of 4 neighbors
publicdoubleterr_elev_lpf=50.0;// pull elevation to average of 4 neighbors
publicdoubleterr_elev_lpf=50.0;// pull elevation to average of 4 neighbors
...
@@ -2137,6 +2142,7 @@ min_str_neib_fpn 0.35
...
@@ -2137,6 +2142,7 @@ min_str_neib_fpn 0.35
gd.addNumericField("Alpha center weight",terr_alpha_weight_center,5,7,"","Weight of center alpha pixel relative to each of the 4 ortho ones.");
gd.addNumericField("Alpha center weight",terr_alpha_weight_center,5,7,"","Weight of center alpha pixel relative to each of the 4 ortho ones.");
gd.addCheckbox("Hole search enable",terr_en_holes,"Search for small semi-transparent holes, disable diffusion of local alpha minimums.");
gd.addCheckbox("Hole search enable",terr_en_holes,"Search for small semi-transparent holes, disable diffusion of local alpha minimums.");
gd.addNumericField("Alpha MM fraction",terr_alpha_mm_hole,5,7,"","Disable diffusion for local \"almost minimum\" (lower than this fraction between min and max neighbors).");
gd.addNumericField("Alpha MM fraction",terr_alpha_mm_hole,5,7,"","Disable diffusion for local \"almost minimum\" (lower than this fraction between min and max neighbors).");
gd.addNumericField("Alpha hole difference",terr_alpha_diff_hole,5,7,"","Minimal alpha difference between min and max neighbor to be considered a hole.");
gd.addNumericField("Terrain diffusion",terr_terr_lpf,5,7,"","LPF for terrain pixels (diffusion to 4 neighbors).");
gd.addNumericField("Terrain diffusion",terr_terr_lpf,5,7,"","LPF for terrain pixels (diffusion to 4 neighbors).");
gd.addNumericField("Vegetation diffusion",terr_veget_lpf,5,7,"","LPF for vegetation pixels (diffusion to 4 neighbors).");
gd.addNumericField("Vegetation diffusion",terr_veget_lpf,5,7,"","LPF for vegetation pixels (diffusion to 4 neighbors).");
gd.addNumericField("Elevation diffusion",terr_elev_lpf,5,7,"","LPF for elevation pixels (diffusion to 4 neighbors).");
gd.addNumericField("Elevation diffusion",terr_elev_lpf,5,7,"","LPF for elevation pixels (diffusion to 4 neighbors).");