@@ -2780,12 +2841,12 @@ public class VegetationLMA {
if(samples_pointers[SAMPLES_VEGETATION_PULL][1]>0){// fits[TVAO_VEGETATION] && (veget_lpf >= 0)) { // should be positive for pull0 and terr_pull_cold (difference between vegetation and terrain)
// final int ind_y_veget = samples_pointers[SAMPLES_VEGETATION_PULL][0]; // ind_next;
@@ -1480,7 +1482,12 @@ public class VegetationModel {
booleanshow_final_result=!tile_woi;// true; (maybe make saving results in tiled mode?
booleanrecalc_weights=clt_parameters.imp.terr_recalc_weights;//false; // recalculate weight depending on terrain visibility
doubletransparency_opaque=1.0-clt_parameters.imp.terr_recalc_opaque;// 0.9; // above is opaque
doubletransparency_pedestal=clt_parameters.imp.terr_recalc_pedestal;// 0.05; // weight of opaque tiles
doubletransparency_frac=clt_parameters.imp.terr_recalc_frac;// 1.0; // increase weight for far pixels (double if scale differece == this)
doubletransparency_dist=clt_parameters.imp.terr_recalc_dist;// 0.05; // weight of opaque tiles
booleanrecalc_average=clt_parameters.imp.terr_recalc_average;//false; // apply transparency to average mismatch
//clt_parameters.imp.; //
...
...
@@ -2005,6 +2012,7 @@ public class VegetationModel {
fit_alpha,// final boolean adjust_alpha,
fit_scenes,// final boolean adjust_scenes,
fit_elevations,// final boolean adjust_elevations,
fit_disable,// final boolean [] fit_disable,
reg_weights,// final double reg_weights, // fraction of the total weight used for regularization
alpha_loss,// final double alpha_loss, // quadratic loss when alpha reaches -1.0 or 2.0
alpha_offset,// final double alpha_offset, // quadratic loss when alpha reaches -1.0 or 2.0
...
...
@@ -2059,6 +2067,15 @@ public class VegetationModel {
par_path,// String path,
true,// boolean keep_settings,
null);// Rectangle [] file_wois); // if not null, should be Rectangle[2] {woi_veg,woi} - will return woi data and not input parameters to this instance
if(recalc_weights){
vegetationLMA.applyTransparency(
null,// final double [] vector,
transparency_opaque,// final double transparency_opaque,
transparency_pedestal,// final double transparency_pedestal,
transparency_frac,// final double transparency_frac,
transparency_dist,// final double transparency_dist,
recalc_average);// final boolean recalc_average);
}
}
// old
if("RESTORE".equals(par_path)){
...
...
@@ -2074,7 +2091,7 @@ public class VegetationModel {