Class Diagram
java.lang.Object
|
+----Diagram
- public class Diagram
- extends Object
This class computes the chromaticity diagram data.
-
B
-
-
data
- Chromaticity values
-
G
-
-
GAM
-
-
M
-
-
N
-
-
R
-
-
XB
-
-
XG
-
-
XR
-
-
XW
-
-
YB
-
-
YG
-
-
YR
-
-
YW
-
-
ZB
-
-
ZG
-
-
ZR
-
-
ZW
-
-
Diagram(int, int)
- This constructor simply initialized the size variables.
-
Compute(int[][])
- Computes the array of pixels representing the diagram.
-
isInRange(int, int)
- Checks if a point belongs to the chromaticity diagram.
XR
final float XR
YR
final float YR
XG
final float XG
YG
final float YG
XB
final float XB
YB
final float YB
XW
final float XW
YW
final float YW
GAM
final float GAM
ZR
final float ZR
ZG
final float ZG
ZB
final float ZB
ZW
final float ZW
M
int M
N
int N
data
public ChromaticityData data
- Chromaticity values
R
float R
G
float G
B
float B
Diagram
public Diagram(int m,
int n)
- This constructor simply initialized the size variables.
- Parameters:
- m - width of the diagram in pixels
- n - height of the diagram in pixels
Compute
void Compute(int icv[][])
- Computes the array of pixels representing the diagram.
- Parameters:
- icv[][] - preallocated array to place computed pixels.
isInRange
public boolean isInRange(int i,
int j)
- Checks if a point belongs to the chromaticity diagram.
- Parameters:
- i - the absciss pixel number [0,m]
- j - the ordinate pixel number [0,n]
- Returns:
- true if pixel belongs to the chromaticity diagram;
false otherwise.