From 707bf6e66588aab78f7b994062239eb961e7b8a9 Mon Sep 17 00:00:00 2001 From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch> Date: Fri, 3 Aug 2018 16:20:49 +0200 Subject: [PATCH] Be even more strict on input bit depth --- .../scripts/Plugins/NoiSee/NoiSee_Bead_Analysis.ijm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 d325357..48611a4 100644 --- a/src/main/resources/scripts/Plugins/NoiSee/NoiSee_Bead_Analysis.ijm +++ b/src/main/resources/scripts/Plugins/NoiSee/NoiSee_Bead_Analysis.ijm @@ -548,8 +548,9 @@ function process_beads() { exit_show(); } - if (bitDepth() == 32) { - print("Floating point images are not supported!"); + // neither floating point nor RGB images make sense for this, so check: + if (bitDepth() != 8 && bitDepth() != 16) { + print("Only images with a bit depth of 8 or 16 are supported!"); exit_show(); } -- GitLab