public class FMeanVarianceField extends VideoAnalyser<FImage>
FImage
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 |
---|
FMeanVarianceField() |
Modifier and Type | Method and Description |
---|---|
void |
analyseFrame(FImage frame)
Analyse the given frame and make no changes to the frame.
|
FImage |
getMean()
Get the mean field of all the frames that have been analysed so far.
|
FImage |
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 FMeanVarianceField()
public void analyseFrame(FImage frame)
VideoAnalyser
analyseFrame
in class VideoAnalyser<FImage>
frame
- The video frame to analysepublic void reset()
reset
in class VideoProcessor<FImage>
VideoProcessor.reset()
public FImage getMean()
public FImage getVariance()