| |
|
| java.lang.Object javax.media.jai.CollectionImage javax.media.jai.ImageSequence
ImageSequence | public class ImageSequence extends CollectionImage (Code) | | A class representing a sequence of images, each associated with a
time stamp and a camera position. The images are of the type
javax.media.jai.PlanarImage ; the time stamps are of the
type float ; the camera positions are of the type
java.lang.Object . The tuple (image, time stamp, camera
position) is represented by class
javax.media.jai.SequentialImage .
This class can be used to represent video or time-lapse photography.
See Also: PlanarImage See Also: SequentialImage |
Method Summary | |
public boolean | add(Object o) Adds a SequentialImage to this collection. | public Object | getCameraPosition(PlanarImage pi) Returns the camera position associated with the specified image,
or null if pi is null or
if no match is found. | public PlanarImage | getImage(float ts) Returns the image associated with the specified time stamp,
or null if no match is found. | public PlanarImage | getImage(Object cp) Returns the image associated with the specified camera position,
or null if cp is null or
if no match is found. | public float | getTimeStamp(PlanarImage pi) Returns the time stamp associated with the specified image, or
-Float.MAX_VALUE if pi is null
or if no match is found. | public boolean | remove(PlanarImage pi) Removes the SequentialImage that contains the
specified image from this collection. | public boolean | remove(float ts) Removes the SequentialImage that contains the
specified time stamp from this collection. | public boolean | remove(Object cp) Removes the SequentialImage that contains the
specified camera position from this collection. |
ImageSequence | protected ImageSequence()(Code) | | The default constrctor.
|
ImageSequence | public ImageSequence(Collection images)(Code) | | Constructs a class that represents a sequence of images.
Parameters: images - A collection of SequentialImage . throws: IllegalArgumentException - if images is null . |
add | public boolean add(Object o)(Code) | | Adds a SequentialImage to this collection. If the
specified image is null , it is not added to the
collection.
true if and only if theSequentialImage is added to the collection. |
getCameraPosition | public Object getCameraPosition(PlanarImage pi)(Code) | | Returns the camera position associated with the specified image,
or null if pi is null or
if no match is found.
|
getImage | public PlanarImage getImage(float ts)(Code) | | Returns the image associated with the specified time stamp,
or null if no match is found.
|
getImage | public PlanarImage getImage(Object cp)(Code) | | Returns the image associated with the specified camera position,
or null if cp is null or
if no match is found.
|
getTimeStamp | public float getTimeStamp(PlanarImage pi)(Code) | | Returns the time stamp associated with the specified image, or
-Float.MAX_VALUE if pi is null
or if no match is found.
|
remove | public boolean remove(PlanarImage pi)(Code) | | Removes the SequentialImage that contains the
specified image from this collection.
true if and only if aSequentialImage with thespecified image is removed from the collection. |
remove | public boolean remove(float ts)(Code) | | Removes the SequentialImage that contains the
specified time stamp from this collection.
true if and only if aSequentialImage with thespecified time stamp is removed from the collection. |
remove | public boolean remove(Object cp)(Code) | | Removes the SequentialImage that contains the
specified camera position from this collection.
true if and only if aSequentialImage with thespecified camera position is removed from the collection. |
|
|
|