diff --git a/app/Operations/Quantification.h b/app/Operations/Quantification.h
index 1947159d70bee9221d7e44930e7aef8a11501856..2875efc4facca89955adf84a729aae98acaec00c 100644
--- a/app/Operations/Quantification.h
+++ b/app/Operations/Quantification.h
@@ -22,6 +22,8 @@
 
 #include <Image.h>
 
+#define N_MAX_THRESHOLD 256
+
 struct Quantification {
     static Quantification linearQuant(int size);
     static Quantification nonLinearQuant(int size, const imagein::Image *image, unsigned int c);
diff --git a/app/Operations/QuantificationWidget.h b/app/Operations/QuantificationWidget.h
index 8095d89060e3780db379c97d6078170134415160..3dd03424e7e5ddc20d763be6beb9d1af81b27c31 100644
--- a/app/Operations/QuantificationWidget.h
+++ b/app/Operations/QuantificationWidget.h
@@ -25,7 +25,7 @@
 
 #include <QScrollArea>
 #include "Quantification.h"
-#define N_MAX_THRESHOLD 32
+
 class QuantificationWidget : public QScrollArea
 {
     Q_OBJECT