Merge "Ignore more yellows and greens"

This commit is contained in:
TreeHugger Robot
2018-02-06 08:32:30 +00:00
committed by Android (Google) Code Review
3 changed files with 40 additions and 18 deletions

View File

@@ -405,12 +405,13 @@ public class Tonal implements ExtractionType {
return v - (float) Math.floor(v);
}
static class TonalPalette {
final float[] h;
final float[] s;
final float[] l;
final float minHue;
final float maxHue;
@VisibleForTesting
public static class TonalPalette {
public final float[] h;
public final float[] s;
public final float[] l;
public final float minHue;
public final float maxHue;
TonalPalette(float[] h, float[] s, float[] l) {
if (h.length != s.length || s.length != l.length) {