public class XuggleVideoWriter extends VideoWriter<org.openimaj.image.MBFImage>
frameRate, height, width| Constructor and Description |
|---|
XuggleVideoWriter(String filename,
int width,
int height,
double frameRate)
Default constructor that takes the frame size and frame rate
of the resulting video.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFrame(org.openimaj.image.MBFImage frame) |
void |
close()
Close the video stream
|
static BufferedImage |
convertToType(BufferedImage sourceImage,
int targetType)
Convert a
BufferedImage of any type, to BufferedImage of
a specified type. |
void |
initialise()
Initialise the writer
|
void |
processingComplete() |
void |
reset() |
getFPS, getTimeStamp, processFramecountFrames, getCurrentFrame, getHeight, getNextFrame, getWidth, hasNextFrame, process, processgetCurrentFrameIndex, iterator, seek, setCurrentFrameIndexclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic XuggleVideoWriter(String filename, int width, int height, double frameRate)
filename - The filename to write the video towidth - The width of the video frame in pixelsheight - The height of the video frame in pixelsframeRate - The frame rate of the resulting videopublic void initialise()
public void processingComplete()
processingComplete in class VideoProcessor<org.openimaj.image.MBFImage>VideoProcessor.processingComplete()public void close()
public void addFrame(org.openimaj.image.MBFImage frame)
addFrame in class VideoWriter<org.openimaj.image.MBFImage>VideoWriter.addFrame(org.openimaj.image.Image)public static BufferedImage convertToType(BufferedImage sourceImage, int targetType)
BufferedImage of any type, to BufferedImage of
a specified type. If the source image is the same type as the target
type, then original image is returned, otherwise new image of the correct
type is created and the content of the source image is copied into the
new image.sourceImage - the image to be convertedtargetType - the desired BufferedImage typepublic void reset()
reset in class VideoProcessor<org.openimaj.image.MBFImage>