From 3834274d541e3981539ea258916ce8792e2d3d5a Mon Sep 17 00:00:00 2001
From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch>
Date: Fri, 3 Aug 2018 17:24:39 +0200
Subject: [PATCH] Fixup: be more strict on input bit depth

---
 .../resources/scripts/Plugins/NoiSee/NoiSee_Bead_Analysis.ijm | 4 ++--
 1 file changed, 2 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 bb26be8..0b4a1a9 100644
--- a/src/main/resources/scripts/Plugins/NoiSee/NoiSee_Bead_Analysis.ijm
+++ b/src/main/resources/scripts/Plugins/NoiSee/NoiSee_Bead_Analysis.ijm
@@ -555,8 +555,8 @@ function process_beads() {
         exit_show();
     }
 
-    if (bitDepth() > 8) {
-        print("image type " +  bitDepth() + " bit detected, converting to 8 bit...");
+    if (bitDepth() == 16) {
+        print("16 bit image type detected, converting to 8 bit...");
         Stack.getStatistics(_, _, stack_min, stack_max, _);
         new_max = stack_max * 1.1;
         // NOTE: having a new value larger than the max value of the current bit
-- 
GitLab