boofcv.alg.background
Class BackgroundModel<T extends ImageBase>
- java.lang.Object
-
- boofcv.alg.background.BackgroundModel<T>
-
- Direct Known Subclasses:
- BackgroundModelMoving, BackgroundModelStationary
public abstract class BackgroundModel<T extends ImageBase> extends java.lang.ObjectBase class for background subtraction/motion detection.
-
-
Constructor Summary
Constructors Constructor and Description BackgroundModel(ImageType<T> imageType)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description ImageType<T>getImageType()Type of input image it can processintgetUnknownValue()Returns the value that pixels in the segmented image are assigned if there is no background information.abstract voidreset()Resets model to its original statevoidsetUnknownValue(int unknownValue)Specify the value of a segmented pixel which has no corresponding pixel in the background image.
-
-
-
Method Detail
-
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. 2 to 255, inclusive.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG