Class ColorMetrology

java.lang.Object
org.episteme.social.arts.ColorMetrology

public final class ColorMetrology extends Object
Provides analytical tools for color measurement and comparison (Colorimetry). Implements standard color space transformations and difference calculations used in art conservation and pigment analysis.

Reference: CIE (1976). Colorimetry.

Since:
1.0
Version:
2.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Method Details

    • deltaE76

      public static double deltaE76(ColorMetrology.LabColor c1, ColorMetrology.LabColor c2)
      Calculates the Delta E (CIE76) difference between two colors. This represents the perceived difference between colors based on Euclidean distance in CIELAB space.
      Parameters:
      c1 - first color
      c2 - second color
      Returns:
      the Delta E value (typically invalid input: '<' 1.0 is imperceptible)
    • rgbToLab

      public static ColorMetrology.LabColor rgbToLab(int r, int g, int b)
      Converts RGB color values (0-255) to CIELAB space. Assumes sRGB color space and D65 standard illuminant.
      Parameters:
      r - red component (0-255)
      g - green component (0-255)
      b - blue component (0-255)
      Returns:
      equivalent LabColor