Class Diagram

java.lang.Object
   |
   +----Diagram

public class Diagram
extends Object
This class computes the chromaticity diagram data.


Variable Index

 o B
 o data
Chromaticity values
 o G
 o GAM
 o M
 o N
 o R
 o XB
 o XG
 o XR
 o XW
 o YB
 o YG
 o YR
 o YW
 o ZB
 o ZG
 o ZR
 o ZW

Constructor Index

 o Diagram(int, int)
This constructor simply initialized the size variables.

Method Index

 o Compute(int[][])
Computes the array of pixels representing the diagram.
 o isInRange(int, int)
Checks if a point belongs to the chromaticity diagram.

Variables

 o XR
 final float XR
 o YR
 final float YR
 o XG
 final float XG
 o YG
 final float YG
 o XB
 final float XB
 o YB
 final float YB
 o XW
 final float XW
 o YW
 final float YW
 o GAM
 final float GAM
 o ZR
 final float ZR
 o ZG
 final float ZG
 o ZB
 final float ZB
 o ZW
 final float ZW
 o M
 int M
 o N
 int N
 o data
 public ChromaticityData data
Chromaticity values

 o R
 float R
 o G
 float G
 o B
 float B

Constructors

 o 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

Methods

 o Compute
 void Compute(int icv[][])
Computes the array of pixels representing the diagram.

Parameters:
icv[][] - preallocated array to place computed pixels.
 o 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.