From 58b43cd4b3499a86002673d9d8695cc0d0ec58f9 Mon Sep 17 00:00:00 2001 From: Gabriel Selzer Date: Wed, 10 Apr 2024 08:46:42 -0500 Subject: [PATCH] Use 5th percentile for pseudocolor hue min --- .../src/main/java/org/scijava/ops/flim/Pseudocolor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scijava-ops-flim/src/main/java/org/scijava/ops/flim/Pseudocolor.java b/scijava-ops-flim/src/main/java/org/scijava/ops/flim/Pseudocolor.java index b63c1519d..43e6d047a 100644 --- a/scijava-ops-flim/src/main/java/org/scijava/ops/flim/Pseudocolor.java +++ b/scijava-ops-flim/src/main/java/org/scijava/ops/flim/Pseudocolor.java @@ -107,7 +107,7 @@ public Img apply(final FitResults rslt, @Nullable Float cMin, // min, max = 20%, 80% IterableInterval hRawII = Views.iterable(hRaw); if (cMin == null) { - cMin = meaner.apply(hRawII).getRealFloat() * 0.2f; + cMin = percentiler.apply(hRawII, 5.0f).getRealFloat(); System.out.println("color_min automatically set to " + cMin); } if (cMax == null) {