jjil.core
Class Image

java.lang.Object
  extended by jjil.core.Image
Direct Known Subclasses:
Complex32Image, Gray16Image, Gray32Image, Gray8Image, RgbImage

public abstract class Image
extends java.lang.Object

Image is the fundamental abstract class for holding images. It is used for passing images between pipeline stages. The image dimensions are stored here; the image format and the actual image data are defined in the derived classes.

Author:
webb

Constructor Summary
Image(int cWidth, int cHeight)
          Creates a new instance of Image
 
Method Summary
abstract  Image clone()
          Makes a copy of the image
 int getHeight()
          Returns the image height
 int getWidth()
          Returns the image width
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Image

public Image(int cWidth,
             int cHeight)
Creates a new instance of Image

Parameters:
cWidth - the image width
cHeight - the image height
Method Detail

clone

public abstract Image clone()
Makes a copy of the image

Overrides:
clone in class java.lang.Object
Returns:
the image copy

getHeight

public int getHeight()
Returns the image height

Returns:
the image height (rows)

getWidth

public int getWidth()
Returns the image width

Returns:
the image width (columns)