T
- The type of the video frame to be analysedpublic abstract class VideoAnalyser<T extends Image<?,T>> extends VideoProcessor<T>
ImageAnalyser
class for analysing
image. It should be used to make analysis and measurements on video frames
without altering the frames themselves.
This class overrides VideoProcessor
to inherit many of its abilities
(chainability etc.) but the processFrame method will always return the input
frame having called analyseFrame. The analyseFrame method should not alter
the input frame.
Constructor and Description |
---|
VideoAnalyser()
Construct a stand-alone video analyser.
|
VideoAnalyser(Video<T> v)
Construct a chainable video analyser.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
analyseFrame(T frame)
Analyse the given frame and make no changes to the frame.
|
T |
processFrame(T frame)
This method will return the input frame after calling
analyseFrame(Image) on the input image. |
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 VideoAnalyser()
public VideoAnalyser(Video<T> v)
v
- The video to chain topublic abstract void analyseFrame(T frame)
frame
- The video frame to analysepublic final T processFrame(T frame)
analyseFrame(Image)
on the input image.processFrame
in class VideoProcessor<T extends Image<?,T>>
frame
- The frame to process.VideoProcessor.processFrame(org.openimaj.image.Image)