Package it.tidalwave.image
Class ColorMatrix
- java.lang.Object
-
- it.tidalwave.image.ColorMatrix
-
public class ColorMatrix extends java.lang.Object
- Author:
- Fabrizio Giudici
-
-
Field Summary
Fields Modifier and Type Field Description static ColorMatrix
XYZ_TO_RGB
-
Constructor Summary
Constructors Constructor Description ColorMatrix(double[] coefficients)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColorMatrix
inverse()
void
normalizeRows()
void
process(short[] data, int index)
FIXME: move to EditableImageColorMatrix
product(ColorMatrix m)
java.lang.String
toString()
-
-
-
Field Detail
-
XYZ_TO_RGB
public static final ColorMatrix XYZ_TO_RGB
-
-
Method Detail
-
process
public final void process(short[] data, int index)
FIXME: move to EditableImage- Parameters:
data
-index
-
-
product
public final ColorMatrix product(ColorMatrix m)
- Parameters:
m
-- Returns:
- 012 345 678
-
normalizeRows
public final void normalizeRows()
-
inverse
public final ColorMatrix inverse()
- Returns:
-
toString
public final java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-