From 77ea2fdf62e9357e223d4f76eb1325f7322a8a47 Mon Sep 17 00:00:00 2001 From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch> Date: Tue, 31 Jul 2018 17:39:01 +0200 Subject: [PATCH] Refuse to work on floating point images No type of sensor that is known to us is producing floating point quantized images, so this usually means some kind of pre-processing has happened (deconvolution?). In such a situation evaluating the SNR doesn't make sense any more since the pre-processing will have a strong impact on the results. --- .../scripts/Plugins/NoiSee/NoiSee_Bead_Analysis.ijm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/resources/scripts/Plugins/NoiSee/NoiSee_Bead_Analysis.ijm b/src/main/resources/scripts/Plugins/NoiSee/NoiSee_Bead_Analysis.ijm index a96aaac..c021f2c 100644 --- a/src/main/resources/scripts/Plugins/NoiSee/NoiSee_Bead_Analysis.ijm +++ b/src/main/resources/scripts/Plugins/NoiSee/NoiSee_Bead_Analysis.ijm @@ -541,6 +541,11 @@ function process_beads() { File.makeDirectory(respath); // TODO: check if image dimensions meet our expectations (z=1, t>1) + if (bitDepth() == 32) { + print("Floating point images are not supported!"); + exit_show(); + } + print("processing image: " + fname + " (location: [" + fpath + "])"); if (bitDepth() > 8) { print("image type " + bitDepth() + " bit detected, converting to 8 bit..."); -- GitLab