public class MBFMeanVarianceField extends VideoAnalyser<MBFImage>
MBFImage
frames.
The generated fields could be used to analyse which parts of a video are
stationary or change a lot. If your video consists of multiple shots, between
which there are large changes in the content, then it probably makes sense to
segment the video using a HistogramVideoShotDetector
and apply a new
analyser to each shot independently.Constructor and Description |
---|
MBFMeanVarianceField() |
Modifier and Type | Method and Description |
---|---|
void |
analyseFrame(MBFImage frame)
Analyse the given frame and make no changes to the frame.
|
MBFImage |
getMean()
Get the mean field of all the frames that have been analysed so far.
|
MBFImage |
getVariance()
Get the variance field of all the frames that have been analysed so far.
|
void |
reset()
Reset the accumulated field data.
|
processFrame
countFrames, getCurrentFrame, getFPS, getHeight, getNextFrame, getTimeStamp, getWidth, hasNextFrame, process, process, processingComplete
close, getCurrentFrameIndex, iterator, seek, setCurrentFrameIndex
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public MBFMeanVarianceField()
public void analyseFrame(MBFImage frame)
VideoAnalyser
analyseFrame
in class VideoAnalyser<MBFImage>
frame
- The video frame to analysepublic void reset()
reset
in class VideoProcessor<MBFImage>
VideoProcessor.reset()
public MBFImage getMean()
public MBFImage getVariance()