Skip to content

Commit

Permalink
Update ContrastEnhancer.java with public set methods for equalize and…
Browse files Browse the repository at this point in the history
… saturated

These changes enable other programs to use the ContrastEnhancer without the UI.
  • Loading branch information
acardona authored Mar 22, 2024
1 parent a22d1f7 commit f3bbcc1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ij/plugin/ContrastEnhancer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f3bbcc1

Please sign in to comment.