Skip to content

Commit 7d3fa08

Browse files
committed
Use 5th percentile for pseudocolor hue min
1 parent eedef3f commit 7d3fa08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scijava-ops-flim/src/main/java/org/scijava/ops/flim/Pseudocolor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public Img<ARGBType> apply(final FitResults rslt, @Nullable Float cMin,
107107
// min, max = 20%, 80%
108108
IterableInterval<FloatType> hRawII = Views.iterable(hRaw);
109109
if (cMin == null) {
110-
cMin = meaner.apply(hRawII).getRealFloat() * 0.2f;
110+
cMin = percentiler.apply(hRawII, 5.0f).getRealFloat();
111111
System.out.println("color_min automatically set to " + cMin);
112112
}
113113
if (cMax == null) {

0 commit comments

Comments
 (0)