Lines Matching refs:outLab
635 * @param outLab 3-element array which holds the resulting LAB components
637 public static void colorToLAB(@ColorInt int color, @NonNull double[] outLab) {
638 RGBToLAB(Color.red(color), Color.green(color), Color.blue(color), outLab);
645 * <li>outLab[0] is L [0 ...100)</li>
646 * <li>outLab[1] is a [-128...127)</li>
647 * <li>outLab[2] is b [-128...127)</li>
653 * @param outLab 3-element array which holds the resulting LAB components
657 @NonNull double[] outLab) {
659 RGBToXYZ(r, g, b, outLab);
660 // outLab now contains XYZ
661 XYZToLAB(outLab[0], outLab[1], outLab[2], outLab);
662 // outLab now contains LAB representation
727 * <li>outLab[0] is L [0 ...100)</li>
728 * <li>outLab[1] is a [-128...127)</li>
729 * <li>outLab[2] is b [-128...127)</li>
735 * @param outLab 3-element array which holds the resulting Lab components
740 @NonNull double[] outLab) {
741 if (outLab.length != 3) {
742 throw new IllegalArgumentException("outLab must have a length of 3.");
747 outLab[0] = Math.max(0, 116 * y - 16);
748 outLab[1] = 500 * (x - y);
749 outLab[2] = 200 * (y - z);