## com.c3d.image Class Uimage

com.c3d.image.Uimage


public abstract class Uimage
implements com.c3d.structured.Subscriptable

TeX The class Uimage\footnote{\copyright Turing Institute, 1998} is an abstract class to support operations on 2 dimensional arrays of objects.

 Field Summary  int height           TeX The number of pixels high and wide that the image occupies.  int planes           TeX The number of pixels high and wide that the image occupies.  java.util.Hashtable properties           TeX required by image consumer but not used  int width           TeX The number of pixels high and wide that the image occupies.

 Constructor Summary Uimage()

 Method Summary  int arity()  double cardinality()  boolean lessthan(com.c3d.util.atomic.Universal b)           TeX one image less than another if all pixels less than corresponding ones, thus it can be implemented by injecting $<$ between the elements of a and b, and then applying $\times/$ to the result abstract  com.c3d.util.atomic.Universal pixel(int x, int y, int plane)  void setProperties(java.util.Hashtable props) abstract  Uimage subImage(int x, int y, int dx, int dy)  com.c3d.util.atomic.Universal subscript(com.c3d.util.atomic.Universal I)           TeX Subscription by a number returns the Ith data element of the image.

 Field Detail

### height

public int height
TeX The number of pixels high and wide that the image occupies.

### width

public int width
TeX The number of pixels high and wide that the image occupies.

### planes

public int planes
TeX The number of pixels high and wide that the image occupies.

### properties

public java.util.Hashtable properties
TeX required by image consumer but not used
 Constructor Detail

### Uimage

public Uimage()
 Method Detail

### pixel

public abstract com.c3d.util.atomic.Universal pixel(int x,
int y,
int plane)

### subImage

public abstract Uimage subImage(int x,
int y,
int dx,
int dy)

### setProperties

public void setProperties(java.util.Hashtable props)

### subscript

public com.c3d.util.atomic.Universal subscript(com.c3d.util.atomic.Universal I)
TeX Subscription by a number returns the Ith data element of the image. Subscription by a 3tuple returns the pixel at position [plane,x,y]. All other case raise an array bounds exception.
Specified by:
subscript in interface com.c3d.structured.Subscriptable

### arity

public int arity()
Specified by:
arity in interface com.c3d.structured.Subscriptable

### cardinality

public double cardinality()

### lessthan

public boolean lessthan(com.c3d.util.atomic.Universal b)
TeX one image less than another if all pixels less than corresponding ones, thus it can be implemented by injecting $<$ between the elements of a and b, and then applying $\times/$ to the result