Skip to content

Commit

Permalink
Use 5th percentile for pseudocolor hue min
Browse files Browse the repository at this point in the history
  • Loading branch information
gselzer committed Apr 10, 2024
1 parent efe58cb commit bef2239
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public Img<ARGBType> apply(final FitResults rslt, @Nullable Float cMin,
// min, max = 20%, 80%
IterableInterval<FloatType> 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) {
Expand Down

0 comments on commit bef2239

Please sign in to comment.