boofcv.alg.background.stationary
Class BackgroundStationaryBasic<T extends ImageBase>
- java.lang.Object
-
- boofcv.alg.background.BackgroundModel<T>
-
- boofcv.alg.background.BackgroundModelStationary<T>
-
- boofcv.alg.background.stationary.BackgroundStationaryBasic<T>
-
- All Implemented Interfaces:
- BackgroundAlgorithmBasic
- Direct Known Subclasses:
- BackgroundStationaryBasic_IL, BackgroundStationaryBasic_PL, BackgroundStationaryBasic_SB
public abstract class BackgroundStationaryBasic<T extends ImageBase> extends BackgroundModelStationary<T> implements BackgroundAlgorithmBasic
Implementation of
BackgroundAlgorithmBasicfor stationary images.
-
-
Constructor Summary
Constructors Constructor and Description BackgroundStationaryBasic(float learnRate, float threshold, ImageType<T> imageType)Configures background model
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description floatgetLearnRate()Returns the learning rate.floatgetThreshold()Returns the threshold for background/moving object.voidsetLearnRate(float learnRate)Specifies the learning ratevoidsetThreshold(float threshold)Sets the threshold for background/moving object-
Methods inherited from class boofcv.alg.background.BackgroundModelStationary
segment, updateBackground
-
Methods inherited from class boofcv.alg.background.BackgroundModel
getImageType, getUnknownValue, reset, setUnknownValue
-
-
-
-
Constructor Detail
-
BackgroundStationaryBasic
public BackgroundStationaryBasic(float learnRate, float threshold, ImageType<T> imageType)Configures background model- Parameters:
learnRate- learning rate, 0 to 1. 0 = fastest and 1 = slowest.threshold- Euclidean distance threshold. Background is ≤ this valueimageType- Type of input image
-
-
Method Detail
-
getLearnRate
public float getLearnRate()
Description copied from interface:BackgroundAlgorithmBasicReturns the learning rate.- Specified by:
getLearnRatein interfaceBackgroundAlgorithmBasic- Returns:
- 0 (slow) to 1 (fast)
-
setLearnRate
public void setLearnRate(float learnRate)
Description copied from interface:BackgroundAlgorithmBasicSpecifies the learning rate- Specified by:
setLearnRatein interfaceBackgroundAlgorithmBasic- Parameters:
learnRate- 0 (slow) to 1 (fast)
-
getThreshold
public float getThreshold()
Description copied from interface:BackgroundAlgorithmBasicReturns the threshold for background/moving object.- Specified by:
getThresholdin interfaceBackgroundAlgorithmBasic- Returns:
- background threshold
-
setThreshold
public void setThreshold(float threshold)
Description copied from interface:BackgroundAlgorithmBasicSets the threshold for background/moving object- Specified by:
setThresholdin interfaceBackgroundAlgorithmBasic- Parameters:
threshold- background threshold
-
-
DataMelt 3.0 © DataMelt by jWork.ORG