System.out.println("getFxDerivs(): BUG: avg_veget="+avg_veget+", avg_alpha="+avg_alpha+",nScene="+nScene+", windx="+windx+". Restored with different overlaid?");
}else{
doublek;
doublek;
if(alpha_piece_linear){
if(alpha_piece_linear){
k=(avg_alpha<0)?0:((avg_alpha>1)?1.0:avg_alpha);
k=(avg_alpha<0)?0:((avg_alpha>1)?1.0:avg_alpha);
...
@@ -2684,6 +2733,7 @@ public class VegetationLMA {
...
@@ -2684,6 +2733,7 @@ public class VegetationLMA {
}
}
}
}
}
}
}
}else{// terrain-only pixel
}else{// terrain-only pixel
d=terrain;
d=terrain;
if(need_derivs&&(ntpar>=0)){
if(need_derivs&&(ntpar>=0)){
...
@@ -2713,7 +2763,7 @@ public class VegetationLMA {
...
@@ -2713,7 +2763,7 @@ public class VegetationLMA {
woi_veg,// final Rectangle woi_veg_in, // used when loading from file (may be different)
getProperty(imp_pars,"MAX_WARP",max_warp),// final double max_warp, // 1.8 - do not use scenes where distance between vegetation projection exceeds this
getProperty(imp_pars,"MAX_WARP",max_warp),// final double max_warp, // 1.8 - do not use scenes where distance between vegetation projection exceeds this
getProperty(imp_pars,"MAX_ELEVATION",max_elevation),// final int max_offset, // maximal "elevation" to consider
getProperty(imp_pars,"MAX_ELEVATION",max_elevation),// final int max_offset, // maximal "elevation" to consider
getProperty(imp_pars,"ELEVATION_RADIUS",elevation_radius),// final double elevation_radius, // Radius of elevation/vegetation influence.
getProperty(imp_pars,"ELEVATION_RADIUS",elevation_radius),// final double elevation_radius, // Radius of elevation/vegetation influence.
valid_scene_pix,// final boolean [] valid_scene_pix, valid_scene_pix_in, // may have nulls or be shorter (do not update "overlaid")
getProperty(imp_pars,"HIGHFREQ_WEIGHT",hifreq_weight),// final double hifreq_weight, // 22.5 0 - do not use high-freq. Relative weight of laplacian components
getProperty(imp_pars,"HIGHFREQ_WEIGHT",hifreq_weight),// final double hifreq_weight, // 22.5 0 - do not use high-freq. Relative weight of laplacian components
getProperty(imp_pars,"TERRAIN_CORRECTION",terrain_correction),// final double terrain_correction,
getProperty(imp_pars,"TERRAIN_CORRECTION",terrain_correction),// final double terrain_correction,
getProperty(imp_pars,"FIT_TERRAIN",fits[TVAO_TERRAIN]),// final boolean adjust_terr,
getProperty(imp_pars,"FIT_TERRAIN",fits[TVAO_TERRAIN]),// final boolean adjust_terr,
...
@@ -4639,10 +4715,10 @@ public class VegetationLMA {
...
@@ -4639,10 +4715,10 @@ public class VegetationLMA {
getProperty(imp_pars,"BOOST_PARALLAX",boost_parallax),// final double boost_parallax, // increase weight of scene with maximal parallax relative to the reference scene
getProperty(imp_pars,"BOOST_PARALLAX",boost_parallax),// final double boost_parallax, // increase weight of scene with maximal parallax relative to the reference scene
getProperty(imp_pars,"MAX_PARALLAX",max_parallax),// final double max_parallax, // do not consider maximal parallax above this (consider it a glitch)
getProperty(imp_pars,"MAX_PARALLAX",max_parallax),// final double max_parallax, // do not consider maximal parallax above this (consider it a glitch)
debugLevel,// final int debugLevel);
debugLevel,// final int debugLevel);
debug_path,// final String debug_path,
debug_save_improved,// final boolean debug_save_improved, // Save debug image after successful LMA step.");
debug_save_improved,// final boolean debug_save_improved, // Save debug image after successful LMA step.");
debug_save_worsened);// final boolean debug_save_worsened) // Save debug image after unsuccessful LMA step.");
debug_save_worsened);// final boolean debug_save_worsened) // Save debug image after unsuccessful LMA step.");