JIGL
v1.6

jigl.image
Class ImageSequence

java.lang.Object
  |
  +--jigl.image.ImageSequence

public class ImageSequence
extends Object

ImageSequence stores a sequence of images


Field Summary
private  Vector sequence
          sequence is a sequence of Images
 
Constructor Summary
ImageSequence()
          Creates a new ImageSequence
 
Method Summary
 void add(Image image)
          Adds an image to the end of a sequence.
 void add(Image image, int location)
          Adds an Image to an location of a sequence
 ImageSequence byteSize()
          ByteSizes the range of this sequence to an arbitrary min/max over a sequence
 Image get(int index)
          Gets the Image at index
 float max()
          Finds the maximum value over a sequence
 float min()
          Finds the minimum value over a sequence
 int number()
          Returns the number of images in this sequence
 void remove(int index)
          Removes the Image at index
 ImageSequence scale(float min, float max)
          Scales a Sequence to an arbitrary max/min
 ImageSequence subSequence(int start, int end)
          Returns a subsequence of a sequence
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sequence

private Vector sequence
sequence is a sequence of Images

Constructor Detail

ImageSequence

public ImageSequence()
Creates a new ImageSequence

Method Detail

add

public void add(Image image)
         throws ImageNotSupportedException
Adds an image to the end of a sequence. Note: Currently only GrayImages and RealGrayImages are supported.

ImageNotSupportedException

add

public void add(Image image,
                int location)
         throws ImageNotSupportedException
Adds an Image to an location of a sequence

ImageNotSupportedException

get

public Image get(int index)
Gets the Image at index


remove

public void remove(int index)
Removes the Image at index


max

public float max()
          throws ColorModelUnknownException,
                 ColorModelNotSupportedException
Finds the maximum value over a sequence

ColorModelUnknownException
ColorModelNotSupportedException

min

public float min()
          throws ColorModelUnknownException,
                 ColorModelNotSupportedException
Finds the minimum value over a sequence

ColorModelUnknownException
ColorModelNotSupportedException

scale

public ImageSequence scale(float min,
                           float max)
                    throws ColorModelUnknownException,
                           ColorModelNotSupportedException
Scales a Sequence to an arbitrary max/min

ColorModelUnknownException
ColorModelNotSupportedException

byteSize

public ImageSequence byteSize()
                       throws ColorModelUnknownException,
                              ColorModelNotSupportedException
ByteSizes the range of this sequence to an arbitrary min/max over a sequence

ColorModelUnknownException
ColorModelNotSupportedException

subSequence

public ImageSequence subSequence(int start,
                                 int end)
                          throws ImageNotSupportedException
Returns a subsequence of a sequence

Parameters:
start - starting index
end - ending index
ImageNotSupportedException

number

public int number()
Returns the number of images in this sequence


JIGL
v1.6

Submit a bug or feature
Revised in May 2002 by Weiming Liu