I
- The image type that this processor will processpublic class VideoFrameProcessor<I extends Image<?,I>> extends VideoProcessor<I>
VideoProcessor
that uses an ImageProcessor
for processing frames of a video.Constructor and Description |
---|
VideoFrameProcessor(ImageProcessor<I> processor)
Non-chainable constructor
|
VideoFrameProcessor(Video<I> video,
ImageProcessor<I> processor)
Chainable constructor.
|
Modifier and Type | Method and Description |
---|---|
I |
processFrame(I frame)
Process a frame in this video.
|
countFrames, getCurrentFrame, getFPS, getHeight, getNextFrame, getTimeStamp, getWidth, hasNextFrame, process, process, processingComplete, reset
close, getCurrentFrameIndex, iterator, seek, setCurrentFrameIndex
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public VideoFrameProcessor(ImageProcessor<I> processor)
processor
- the processor to usepublic VideoFrameProcessor(Video<I> video, ImageProcessor<I> processor)
video
- The video to processprocessor
- the next processor in linepublic I processFrame(I frame)
processFrame
in class VideoProcessor<I extends Image<?,I>>
frame
- The frame to process.VideoProcessor.processFrame(org.openimaj.image.Image)