From f3bbcc1d33a2457d439cace79f9775d0676a7764 Mon Sep 17 00:00:00 2001 From: Albert Cardona Date: Fri, 22 Mar 2024 12:20:54 +0000 Subject: [PATCH] Update ContrastEnhancer.java with public set methods for equalize and saturated These changes enable other programs to use the ContrastEnhancer without the UI. --- ij/plugin/ContrastEnhancer.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ij/plugin/ContrastEnhancer.java b/ij/plugin/ContrastEnhancer.java index 951a9782..17ad2b23 100644 --- a/ij/plugin/ContrastEnhancer.java +++ b/ij/plugin/ContrastEnhancer.java @@ -338,6 +338,14 @@ private double getWeightedValue(int[] histogram, int i) { public void setNormalize(boolean normalize) { this.normalize = normalize; } + + public void setEqualize(boolean equalize) { + this.equalize = equalize; + } + + public void setSaturated(double saturated) { + this.saturated = saturated; + } public void setProcessStack(boolean processStack) { this.processStack = processStack;