Skip to content
Snippets Groups Projects
Commit b3582df1 authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Create a summary image from results to be included in PDF

parent 451320f2
No related branches found
No related tags found
No related merge requests found
...@@ -12,8 +12,6 @@ ...@@ -12,8 +12,6 @@
/// TODOs: /// TODOs:
// - create a summary image with results to be included in PDF
/// Naming conventions /// Naming conventions
// - "img_" - image IDs of 2D images // - "img_" - image IDs of 2D images
...@@ -316,23 +314,21 @@ function process_fluo() { ...@@ -316,23 +314,21 @@ function process_fluo() {
/////////// write summary of results and settings into a new table //////////// ////////// /////////// write summary of results and settings into a new table //////////// //////////
title = "NoiSee Results Summary"; title = "NoiSee Results Summary";
titleb = "[" + title + "]";
if (isOpen(title)) pairs = newArray();
print(titleb, "\\Clear"); pairs = Array.concat(pairs, "Signal mean", mean_sig);
else pairs = Array.concat(pairs, "Signal StdDev (noise)", std_sig);
run("Table...", "name=" + titleb + " width=320 height=340"); pairs = Array.concat(pairs, "SNR", snr);
print(titleb, "\\Headings:Label\tValue"); pairs = Array.concat(pairs, "Background mean", mean_bg);
print(titleb, "Signal mean\t" + mean_sig); pairs = Array.concat(pairs, "SBR", sbr);
print(titleb, "Signal StdDev (noise)\t" + std_sig); pairs = Array.concat(pairs, "Background StdDev", std_bg);
print(titleb, "SNR\t" + snr); pairs = Array.concat(pairs, "", "");
print(titleb, "Background mean\t" + mean_bg); pairs = Array.concat(pairs, "-- Input --", "");
print(titleb, "SBR\t" + sbr); pairs = Array.concat(pairs, "dark image", bg_fname);
print(titleb, "Background StdDev\t" + std_bg); pairs = Array.concat(pairs, "fluorescein image", fluo_fname);
print(titleb, "\t");
print(titleb, "dark image\t" + bg_fname); createTable(title, pairs, respath + "/" + "NoiSee-summary.txt");
print(titleb, "fluorescein image\t" + fluo_fname); img_summary = createTableImage(title, pairs);
selectWindow(title);
saveAs("Results", respath + "/" + "NoiSee-summary.txt");
////////// ////////// ////////// ////////// ////////// ////////// ////////// ////////// ////////// ////////// ////////// ////////// ////////// ////////// ////////// //////////
...@@ -361,6 +357,7 @@ function process_fluo() { ...@@ -361,6 +357,7 @@ function process_fluo() {
print("Creating PDF from images: " + fname_pdf); print("Creating PDF from images: " + fname_pdf);
run("PDF ... ", "show show scale save one save=[" + fname_pdf + "]"); run("PDF ... ", "show show scale save one save=[" + fname_pdf + "]");
} }
closeImage(img_summary);
image_ids = newArray(rgb_sig, rgb_fluo, rgb_dark, rgb_hist); image_ids = newArray(rgb_sig, rgb_fluo, rgb_dark, rgb_hist);
arrangeImages(image_ids, screenHeight * 0.2); arrangeImages(image_ids, screenHeight * 0.2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment