Skip to content

Commit

Permalink
Fixes a bug with color statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisDrogoul committed Jul 1, 2021
1 parent 95777eb commit 982b0af
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -720,7 +720,7 @@ public static Object opMedian(final IScope scope, final IContainer values) {
b.addValue(p.getBlue());
}
if (r.getSize() == 0) return new GamaColor(0, 0, 0, 0);
return new GamaColor(r.getMedian(), g.getMedian(), b.getMedian(), 0);
return new GamaColor((int) r.getMedian(), (int) g.getMedian(), (int) b.getMedian(), 0);
default:
final DataSet d = new DataSet();
for (final Object o : values.iterable(scope)) {
Expand Down

0 comments on commit 982b0af

Please sign in to comment.