public class ImageStreamSequence<T extends boofcv.struct.image.ImageBase<T>> extends java.lang.Object implements SimpleImageSequence<T>
CombineFilesTogether, it will read the files from
the stream and decode them. Only one image is read at a time and if it is initialized from a file
the sequence can be restarted.| Constructor and Description |
|---|
ImageStreamSequence(java.io.InputStream in,
boolean storeData,
boofcv.struct.image.ImageType<T> imageType) |
ImageStreamSequence(java.lang.String fileName,
boolean storeData,
boofcv.struct.image.ImageType<T> imageType) |
| 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 |
getNextHeight()
Returns the height of the next image
|
int |
getNextWidth()
Returns the width of the next image
|
boolean |
hasNext()
If a new image is available.
|
static void |
main(java.lang.String[] args) |
T |
next()
Returns the next image available in the sequence.
|
void |
reset()
Start reading the sequence from the start
|
void |
setLoop(boolean loop)
Sets if the video should loop or not
|
public ImageStreamSequence(java.io.InputStream in,
boolean storeData,
boofcv.struct.image.ImageType<T> imageType)
public ImageStreamSequence(java.lang.String fileName,
boolean storeData,
boofcv.struct.image.ImageType<T> imageType)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic int getNextWidth()
SimpleImageSequencegetNextWidth in interface SimpleImageSequence<T extends boofcv.struct.image.ImageBase<T>>public int getNextHeight()
SimpleImageSequencegetNextHeight in interface SimpleImageSequence<T extends boofcv.struct.image.ImageBase<T>>public boolean hasNext()
SimpleImageSequencehasNext in interface SimpleImageSequence<T extends boofcv.struct.image.ImageBase<T>>public T next()
SimpleImageSequencenext in interface SimpleImageSequence<T extends boofcv.struct.image.ImageBase<T>>public java.awt.image.BufferedImage getGuiImage()
SimpleImageSequencegetGuiImage in interface SimpleImageSequence<T extends boofcv.struct.image.ImageBase<T>>public void close()
SimpleImageSequenceclose in interface SimpleImageSequence<T extends boofcv.struct.image.ImageBase<T>>public int getFrameNumber()
SimpleImageSequencegetFrameNumber in interface SimpleImageSequence<T extends boofcv.struct.image.ImageBase<T>>public void setLoop(boolean loop)
SimpleImageSequencesetLoop in interface SimpleImageSequence<T extends boofcv.struct.image.ImageBase<T>>loop - true for looping forever, false for oncepublic boofcv.struct.image.ImageType<T> getImageType()
SimpleImageSequencegetImageType in interface SimpleImageSequence<T extends boofcv.struct.image.ImageBase<T>>public void reset()
SimpleImageSequencereset in interface SimpleImageSequence<T extends boofcv.struct.image.ImageBase<T>>public static void main(java.lang.String[] args)
throws java.io.FileNotFoundException
java.io.FileNotFoundException