![]() | [using it] | Interface Manipulation Package v4.0 (2008-06-25) | ![]() | ©copyright | ![]() |
java.lang.Objectimp.ima.RgbImageSequence
public class RgbImageSequence
This class encapsulates an image sequence.
Constructor Summary | |
---|---|
RgbImageSequence(String[] images)
Constructs an image sequence from a sequence of URLs. |
Method Summary | |
---|---|
RgbImageSequence |
clear()
Clears the image buffers (stored files and memory buffers). |
static String[] |
files(String images)
Returns all files corresponding to a path wild-card |
RgbImage |
get(int index,
String channel)
Gets an image from the sequence. |
RgbImage |
getFiltered(int index,
String channel)
Called when an image must be computed. |
int |
getHeight()
Returns the images height (constant in the sequence) |
String |
getName(int index)
Returns the image name of the given index |
int |
getWidth()
Returns the images width (constant in the sequence) |
int |
length()
Returns the image sequence length. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RgbImageSequence(String[] images)
images
- The images URLs. Method Detail |
---|
public RgbImageSequence clear()
public static String[] files(String images)
images
- A path wild-card, e.g. mypath/seq.*.pgn may also be specified.
The ``*'' char must be unique and must only define the file pattern, not the directory.
public RgbImage get(int index, String channel) throws IOException
index
- Image index, from 0, in the sequence.channel
- [optional, default is "intensity"] Image channel.
IOException
public RgbImage getFiltered(int index, String channel) throws IOException
index
- Image index in the sequence.channel
- Image channel (this method is not called for the "intensity" channel).
IllegalArgumentException
- If the channel is undefined.
IOException
public int getHeight() throws IOException
IOException
public String getName(int index)
index
- The image index.
public int getWidth() throws IOException
IOException
public int length()