Package boofcv.alg.background
Class BackgroundModel<T extends ImageBase<T>>
java.lang.Object
boofcv.alg.background.BackgroundModel<T>
- Direct Known Subclasses:
BackgroundModelMoving
,BackgroundModelStationary
Base class for background subtraction/motion detection.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionType of input image it can processint
Returns the value that pixels in the segmented image are assigned if there is no background information.abstract void
reset()
Resets model to its original statevoid
setUnknownValue
(int unknownValue) Specify the value of a segmented pixel which has no corresponding pixel in the background image.
-
Field Details
-
imageType
-
unknownValue
protected byte unknownValue
-
-
Constructor Details
-
BackgroundModel
-
-
Method Details
-
reset
public abstract void reset()Resets model to its original state -
getUnknownValue
public int getUnknownValue()Returns the value that pixels in the segmented image are assigned if there is no background information.- Returns:
- Value for unknown
-
setUnknownValue
public void setUnknownValue(int unknownValue) Specify the value of a segmented pixel which has no corresponding pixel in the background image.- Parameters:
unknownValue
- Value for pixels with out a background pixel. 0 to 255, inclusive.
-
getImageType
Type of input image it can process
-