Class ImageSequence

  • All Implemented Interfaces:
    java.lang.Cloneable, Actor, Executable, FiringsRecordable, Initializable, TypedActor, Changeable, Debuggable, DebugListener, Derivable, Instantiable, ModelErrorHandler, MoMLExportable, Moveable, Nameable

    public class ImageSequence
    extends Source
    Load a sequence of binary images from files, and create a sequence of IntMatrixTokens from them. The data is assumed to row scanned, starting at the top row. Each byte of the binary file is assumed to be the greyscale intensity of a single pixel in the image.

    The files to be loaded are specified as relative URLs from the base URL path. Usually the base path should be set to the root ptolemy classpath. The file names are created by replacing *'s in the filename with consecutive integers (using zero padding). For example, specifying a URLtemplate of "missa***.qcf" and a starting frame of zero, will create the names:

    • missa000.qcf
    • missa001.qcf
    • missa002.qcf
    • ...
    The name manufacturing algorithm is not especially robust, so debug listeners attached to this actor will receive a list of the file names. This actor could be greatly expanded to use the Java Advanced Imaging API for loading images.
    Since:
    Ptolemy II 0.2
    Version:
    $Id$
    Author:
    Steve Neuendorffer
    Pt.AcceptedRating:
    Red
    Pt.ProposedRating:
    Yellow (neuendor)