public class AdaptiveBackgroundSubtraction extends DetectionAlgorithm
detectedConnectedComponents| Constructor and Description |
|---|
AdaptiveBackgroundSubtraction(java.lang.String cnkName,
RecordingProperties recordingProps,
AlgorithmProperties algorithmProps,
FlatFieldCorrector flatFieldCorrector)
Class constructor, specifying the name of the raw frames chunk to be processed, the size properties of the frames, the parameters of the detection algorithm and a FlatFieldCorrector object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
Detect()
Detects objects on the current frame by:
1) subtracting the background from the frame
2) thresholding the differences to indicate potential pixels
3) forms objects by using connected component analysis
4) finally, it selectively updates the background
|
void |
UpdateBackground()
Updates the background using the current frame
|
copyCurrentFrame, CopyMemoryBuffer, getEvents, getTimeStamppublic AdaptiveBackgroundSubtraction(java.lang.String cnkName,
RecordingProperties recordingProps,
AlgorithmProperties algorithmProps,
FlatFieldCorrector flatFieldCorrector)
cnkName - the name of the chunkrecordingProps - the properties of the camera recording. It contains information about the frames, such as the width, the height and the pixel depth.algorithmProps - the parameters of the detection algorithmflatFieldCorrector - an object for the flat field processing of the frames prior to detectionpublic int Detect()
public void UpdateBackground()