public class AdaptiveMoGBackgroundEstimator<IMAGE extends Image<?,IMAGE> & SinglebandImageProcessor.Processable<Float,FImage,IMAGE>> extends VideoProcessor<IMAGE>
| Constructor and Description |
|---|
AdaptiveMoGBackgroundEstimator(Video<IMAGE> xv) |
| Modifier and Type | Method and Description |
|---|---|
void |
initialiseModel(int width,
int height,
int numBands)
Initialise the internal state of the model.
|
static void |
main(String[] args) |
IMAGE |
processFrame(IMAGE frame)
Process a frame in this video.
|
void |
updateModel(IMAGE frame) |
countFrames, getCurrentFrame, getFPS, getHeight, getNextFrame, getTimeStamp, getWidth, hasNextFrame, process, process, processingComplete, resetclose, getCurrentFrameIndex, iterator, seek, setCurrentFrameIndexclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic AdaptiveMoGBackgroundEstimator(Video<IMAGE> xv)
public void initialiseModel(int width, int height, int numBands)
updateModel(Image) will call
it automatically), however, it is public to allow the model to be reset.width - the frame widthheight - the frame heightnumBands - the number of image bandspublic void updateModel(IMAGE frame)
public IMAGE processFrame(IMAGE frame)
VideoProcessorprocessFrame in class VideoProcessor<IMAGE extends Image<?,IMAGE> & SinglebandImageProcessor.Processable<Float,FImage,IMAGE>>frame - The frame to process.public static void main(String[] args) throws IOException
IOException