public class LoadFileImageSequence<T extends boofcv.struct.image.ImageBase> extends java.lang.Object implements SimpleImageSequence<T>
| Constructor and Description |
|---|
LoadFileImageSequence(boofcv.struct.image.ImageType<T> type,
java.lang.String directory,
java.lang.String suffix)
Will load an image sequence with no modification.
|
LoadFileImageSequence(boofcv.struct.image.ImageType<T> type,
java.lang.String directory,
java.lang.String suffix,
int scalefactor)
Will load an image sequence and then scale the images
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Call when done reading the image sequence.
|
int |
getFrameNumber()
Returns the number of the current frame in the sequence.
|
java.awt.image.BufferedImage |
getGuiImage()
Returns the image in the original format that it was read in as.
|
boofcv.struct.image.ImageType<T> |
getImageType()
Returns the type of class used to store the output image
|
int |
getIndex() |
int |
getNextHeight()
Returns the height of the next image
|
int |
getNextWidth()
Returns the width of the next image
|
boolean |
hasNext()
True if there is another image to read and false if there are no more.
|
boolean |
isLoop() |
T |
next()
Loads the next image into a BufferedImage and returns it.
|
void |
reset()
Start reading the sequence from the start
|
void |
setIndex(int index) |
void |
setLoop(boolean loop)
Sets if the video should loop or not
|
public LoadFileImageSequence(boofcv.struct.image.ImageType<T> type, java.lang.String directory, java.lang.String suffix)
directory - The directory containing the images.suffix - The suffix that the images have.public LoadFileImageSequence(boofcv.struct.image.ImageType<T> type, java.lang.String directory, java.lang.String suffix, int scalefactor)
directory - The directory containing the images.suffix - The suffix that the images have.scalefactor - How much the images will be scaled down by.public void setLoop(boolean loop)
SimpleImageSequencesetLoop in interface SimpleImageSequence<T extends boofcv.struct.image.ImageBase>loop - true for looping forever, false for oncepublic boolean isLoop()
public int getNextWidth()
SimpleImageSequencegetNextWidth in interface SimpleImageSequence<T extends boofcv.struct.image.ImageBase>public int getNextHeight()
SimpleImageSequencegetNextHeight in interface SimpleImageSequence<T extends boofcv.struct.image.ImageBase>public boolean hasNext()
hasNext in interface SimpleImageSequence<T extends boofcv.struct.image.ImageBase>public T next()
next in interface SimpleImageSequence<T extends boofcv.struct.image.ImageBase>public java.awt.image.BufferedImage getGuiImage()
SimpleImageSequencegetGuiImage in interface SimpleImageSequence<T extends boofcv.struct.image.ImageBase>public boofcv.struct.image.ImageType<T> getImageType()
SimpleImageSequencegetImageType in interface SimpleImageSequence<T extends boofcv.struct.image.ImageBase>public int getFrameNumber()
SimpleImageSequencegetFrameNumber in interface SimpleImageSequence<T extends boofcv.struct.image.ImageBase>public void close()
SimpleImageSequenceclose in interface SimpleImageSequence<T extends boofcv.struct.image.ImageBase>public void reset()
SimpleImageSequencereset in interface SimpleImageSequence<T extends boofcv.struct.image.ImageBase>public int getIndex()
public void setIndex(int index)