Commit dffd9fb5 authored by Andrey Filippov's avatar Andrey Filippov

Output target statistics

parent 9ca65083
...@@ -837,6 +837,7 @@ min_str_neib_fpn 0.35 ...@@ -837,6 +837,7 @@ min_str_neib_fpn 0.35
public boolean cuas_intermed_giga = false;// save huge (gigabyte) intermediate files public boolean cuas_intermed_giga = false;// save huge (gigabyte) intermediate files
public boolean cuas_debug_more = true;// save/show more images public boolean cuas_debug_more = true;// save/show more images
public boolean cuas_generate = true; // generate and save targets Tiff and/or video files public boolean cuas_generate = true; // generate and save targets Tiff and/or video files
public boolean cuas_generate_csv = true; // generate and save targets as csv file
public boolean cuas_save_mono = false; // save 32-bit monochrome target+backgrounds Tiffs (before optional scaling) public boolean cuas_save_mono = false; // save 32-bit monochrome target+backgrounds Tiffs (before optional scaling)
public boolean cuas_save_color = true; // save color rendered images (same as videos) public boolean cuas_save_color = true; // save color rendered images (same as videos)
public boolean cuas_save_video = true; // save color rendered images (same as videos) public boolean cuas_save_video = true; // save color rendered images (same as videos)
...@@ -2577,6 +2578,8 @@ min_str_neib_fpn 0.35 ...@@ -2577,6 +2578,8 @@ min_str_neib_fpn 0.35
gd.addCheckbox ("Generate and save detected targets", this.cuas_generate, gd.addCheckbox ("Generate and save detected targets", this.cuas_generate,
"Generate and save targets Tiff and/or video files (all images and videos)."); "Generate and save targets Tiff and/or video files (all images and videos).");
gd.addCheckbox ("Save target data as a CSV file", this.cuas_generate_csv,
"Generate and save targets as a spreadsheet data (.csv).");
gd.addCheckbox ("Save monochrome targets+background", this.cuas_save_mono, gd.addCheckbox ("Save monochrome targets+background", this.cuas_save_mono,
"Save 32-bit monochrome targets+background Tiffs (before optional scaling)."); "Save 32-bit monochrome targets+background Tiffs (before optional scaling).");
...@@ -3814,6 +3817,7 @@ min_str_neib_fpn 0.35 ...@@ -3814,6 +3817,7 @@ min_str_neib_fpn 0.35
this.cuas_debug_more = gd.getNextBoolean(); this.cuas_debug_more = gd.getNextBoolean();
this.cuas_generate = gd.getNextBoolean(); this.cuas_generate = gd.getNextBoolean();
this.cuas_generate_csv = gd.getNextBoolean();
this.cuas_save_mono = gd.getNextBoolean(); this.cuas_save_mono = gd.getNextBoolean();
this.cuas_save_color = gd.getNextBoolean(); this.cuas_save_color = gd.getNextBoolean();
...@@ -4914,6 +4918,7 @@ min_str_neib_fpn 0.35 ...@@ -4914,6 +4918,7 @@ min_str_neib_fpn 0.35
properties.setProperty(prefix+"cuas_debug_more", this.cuas_debug_more+""); // boolean properties.setProperty(prefix+"cuas_debug_more", this.cuas_debug_more+""); // boolean
properties.setProperty(prefix+"cuas_generate", this.cuas_generate+""); // boolean properties.setProperty(prefix+"cuas_generate", this.cuas_generate+""); // boolean
properties.setProperty(prefix+"cuas_generate_csv", this.cuas_generate_csv+""); // boolean
properties.setProperty(prefix+"cuas_save_mono", this.cuas_save_mono+""); // boolean properties.setProperty(prefix+"cuas_save_mono", this.cuas_save_mono+""); // boolean
properties.setProperty(prefix+"cuas_save_color", this.cuas_save_color+""); // boolean properties.setProperty(prefix+"cuas_save_color", this.cuas_save_color+""); // boolean
properties.setProperty(prefix+"cuas_save_video", this.cuas_save_video+""); // boolean properties.setProperty(prefix+"cuas_save_video", this.cuas_save_video+""); // boolean
...@@ -5974,6 +5979,7 @@ min_str_neib_fpn 0.35 ...@@ -5974,6 +5979,7 @@ min_str_neib_fpn 0.35
if (properties.getProperty(prefix+"cuas_debug_more")!=null) this.cuas_debug_more=Boolean.parseBoolean(properties.getProperty(prefix+"cuas_debug_more")); if (properties.getProperty(prefix+"cuas_debug_more")!=null) this.cuas_debug_more=Boolean.parseBoolean(properties.getProperty(prefix+"cuas_debug_more"));
if (properties.getProperty(prefix+"cuas_generate")!=null) this.cuas_generate=Boolean.parseBoolean(properties.getProperty(prefix+"cuas_generate")); if (properties.getProperty(prefix+"cuas_generate")!=null) this.cuas_generate=Boolean.parseBoolean(properties.getProperty(prefix+"cuas_generate"));
if (properties.getProperty(prefix+"cuas_generate_csv")!=null) this.cuas_generate_csv=Boolean.parseBoolean(properties.getProperty(prefix+"cuas_generate_csv"));
if (properties.getProperty(prefix+"cuas_save_mono")!=null) this.cuas_save_mono=Boolean.parseBoolean(properties.getProperty(prefix+"cuas_save_mono")); if (properties.getProperty(prefix+"cuas_save_mono")!=null) this.cuas_save_mono=Boolean.parseBoolean(properties.getProperty(prefix+"cuas_save_mono"));
if (properties.getProperty(prefix+"cuas_save_color")!=null) this.cuas_save_color=Boolean.parseBoolean(properties.getProperty(prefix+"cuas_save_color")); if (properties.getProperty(prefix+"cuas_save_color")!=null) this.cuas_save_color=Boolean.parseBoolean(properties.getProperty(prefix+"cuas_save_color"));
if (properties.getProperty(prefix+"cuas_save_video")!=null) this.cuas_save_video=Boolean.parseBoolean(properties.getProperty(prefix+"cuas_save_video")); if (properties.getProperty(prefix+"cuas_save_video")!=null) this.cuas_save_video=Boolean.parseBoolean(properties.getProperty(prefix+"cuas_save_video"));
...@@ -7034,6 +7040,7 @@ min_str_neib_fpn 0.35 ...@@ -7034,6 +7040,7 @@ min_str_neib_fpn 0.35
imp.cuas_debug_more = this.cuas_debug_more; imp.cuas_debug_more = this.cuas_debug_more;
imp.cuas_generate = this.cuas_generate; imp.cuas_generate = this.cuas_generate;
imp.cuas_generate_csv = this.cuas_generate_csv;
imp.cuas_save_mono = this.cuas_save_mono; imp.cuas_save_mono = this.cuas_save_mono;
imp.cuas_save_color = this.cuas_save_color; imp.cuas_save_color = this.cuas_save_color;
imp.cuas_save_video = this.cuas_save_video; imp.cuas_save_video = this.cuas_save_video;
......
...@@ -5929,6 +5929,9 @@ public class QuadCLTCPU { ...@@ -5929,6 +5929,9 @@ public class QuadCLTCPU {
new FileWriter(file_path, append)); new FileWriter(file_path, append));
out.write(string); out.write(string);
out.close(); out.close();
if (!append) { // may be too many in append mode
System.out.println("saveStringInModelDirectory(): saved "+file_path);
}
return true; return true;
} catch (IOException e) { } catch (IOException e) {
// Display message when exception occurs // Display message when exception occurs
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment