Class ColorMetrology
java.lang.Object
org.episteme.social.arts.ColorMetrology
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)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents a color in the CIELAB (CIE 1976 L*a*b*) color space. -
Method Summary
Modifier and TypeMethodDescriptionstatic doubleCalculates the Delta E (CIE76) difference between two colors.static ColorMetrology.LabColorrgbToLab(int r, int g, int b) Converts RGB color values (0-255) to CIELAB space.
-
Method Details
-
deltaE76
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 colorc2- second color- Returns:
- the Delta E value (typically invalid input: '<' 1.0 is imperceptible)
-
rgbToLab
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
-