Class image

java.lang.Object
  |
  +--image
Direct Known Subclasses:
BinaryFast, image1DDouble, image1DInt, image2DDouble, image2DInt

public abstract class image
extends java.lang.Object

All image representations extend image. All image representations explicitly store the width and height of the image and the image itself can always be converted to an array of integers.


Field Summary
protected  int height
          The height of the image.
protected  int width
          The width of the image.
 
Constructor Summary
image()
           
 
Method Summary
 int getHeight()
          Returns the height of the image in pixels.
abstract  int[] getValues()
          All image representations define this abstract method to enable any image to be converted to an integer array.
 int getWidth()
          Returns the width of the image in pixels.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

width

protected int width
The width of the image.

height

protected int height
The height of the image.
Constructor Detail

image

public image()
Method Detail

getWidth

public int getWidth()
Returns the width of the image in pixels.
Returns:
width in pixels

getHeight

public int getHeight()
Returns the height of the image in pixels.
Returns:
height in pixels

getValues

public abstract int[] getValues()
All image representations define this abstract method to enable any image to be converted to an integer array.
Returns:
the image in integer array form