gd.addCheckbox("Use high-res for flat points",flat_high_res,"If false - use low-res convolved version.");
gd.addCheckbox("Use high-res for histogram",temp_high_res,"If false - - use low-res convolved version.");
gd.addMessage("--- Finding locally flat points to use for the 2D histogram ---");
gd.addCheckbox("4-sides flat",four_sides,"Require local min-max in both horizontal and vertical direction (false - one pair is enough).");
gd.addNumericField("Flatness check in first image",neib_radius,3,7,"pix","Low/high res as selected above.");
gd.addNumericField("Flatness check in second image",neib_radius_other,3,7,"pix","In second image.");
gd.addNumericField("Maximal difference in first image",max_heib_diff,3,7,"counts","Maximal difference from the center pixel within the specified radius.");
gd.addNumericField("Maximal difference in first image",max_neib_diff_other,3,7,"counts","Maximal difference from the center pixel within the specified radius.");
gd.addMessage("--- Generating 2D histogram ---");
gd.addNumericField("Histogram height (temperature)",num_temp,0,4,"pix","Number of temperature bins,");
gd.addNumericField("Histogram width (DATI)",num_dati,0,4,"pix","Number of DATI bins,");
gd.addNumericField("Discard high temperature samples",frac_hi_temp,4,8,"","Fraction of all samples.");
gd.addNumericField("Discard low temperature samples",frac_lo_temp,4,8,"","Fraction of all samples.");
gd.addNumericField("Discard high DATI samples",frac_hi_dati,4,8,"","Fraction of all samples.");
gd.addNumericField("Discard low DATI samples",frac_lo_dati,4,8,"","Fraction of all samples.");
gd.addCheckbox("High temperature - up",invert_y,"Plot high-temperature up (y-axis). High DATI is always to the right (x-axis).");
gd.addNumericField("Number of marked mines",mine_number,0,4,"","First marks are considered mines, other - just samples to see in the histogram.");
gd.addNumericField("Cluster radius (relative)",falsepos_rel_radius,3,7,"","Relative to temperature and DATI plotted ranges.");
gd.addMessage("Histogram may be manually blurred with sigma=2.0");