public class BackgroundMovingBasic_MS<T extends boofcv.struct.image.ImageSingleBand,Motion extends georegression.struct.InvertibleTransform<Motion>> extends BackgroundMovingBasic<boofcv.struct.image.MultiSpectral<T>,Motion>
BackgroundMovingBasic for MultiSpectral.| Modifier and Type | Field and Description |
|---|---|
protected boofcv.struct.image.MultiSpectral<boofcv.struct.image.ImageFloat32> |
background |
protected boofcv.core.image.GImageMultiBand |
backgroundWrapper |
protected boofcv.core.image.GImageMultiBand |
inputWrapper |
protected boofcv.alg.interpolate.InterpolatePixelMB<boofcv.struct.image.MultiSpectral<boofcv.struct.image.ImageFloat32>> |
interpolationBG |
protected boofcv.alg.interpolate.InterpolatePixelMB<boofcv.struct.image.MultiSpectral<T>> |
interpolationInput |
protected float[] |
pixelBack |
protected float[] |
pixelInput |
learnRate, thresholdbackgroundHeight, backgroundWidth, corners, currentToWorld, homeToWorld, transform, work, worldToCurrent, worldToHomeimageType, unknownValue| Constructor and Description |
|---|
BackgroundMovingBasic_MS(float learnRate,
float threshold,
boofcv.struct.distort.PointTransformModel_F32<Motion> transform,
boofcv.alg.interpolate.TypeInterpolate interpType,
boofcv.struct.image.ImageType<boofcv.struct.image.MultiSpectral<T>> imageType) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_segment(Motion currentToWorld,
boofcv.struct.image.MultiSpectral<T> frame,
boofcv.struct.image.ImageUInt8 segmented) |
boofcv.struct.image.MultiSpectral<boofcv.struct.image.ImageFloat32> |
getBackground()
Returns the background image.
|
void |
initialize(int backgroundWidth,
int backgroundHeight,
Motion homeToWorld)
Initializes background model.
|
void |
reset()
Resets model to its original state
|
protected void |
updateBackground(int x0,
int y0,
int x1,
int y1,
boofcv.struct.image.MultiSpectral<T> frame)
Call to update the background with the frame inside the bounding box.
|
getLearnRate, getThreshold, setLearnRate, setThresholdsegment, updateBackgroundgetImageType, getUnknownValue, setUnknownValueprotected boofcv.struct.image.MultiSpectral<boofcv.struct.image.ImageFloat32> background
protected boofcv.alg.interpolate.InterpolatePixelMB<boofcv.struct.image.MultiSpectral<T extends boofcv.struct.image.ImageSingleBand>> interpolationInput
protected boofcv.alg.interpolate.InterpolatePixelMB<boofcv.struct.image.MultiSpectral<boofcv.struct.image.ImageFloat32>> interpolationBG
protected boofcv.core.image.GImageMultiBand backgroundWrapper
protected boofcv.core.image.GImageMultiBand inputWrapper
protected float[] pixelInput
protected float[] pixelBack
public boofcv.struct.image.MultiSpectral<boofcv.struct.image.ImageFloat32> getBackground()
Float.MAX_VALUE.public void initialize(int backgroundWidth,
int backgroundHeight,
Motion homeToWorld)
BackgroundModelMovinginitialize in class BackgroundModelMoving<boofcv.struct.image.MultiSpectral<T extends boofcv.struct.image.ImageSingleBand>,Motion extends georegression.struct.InvertibleTransform<Motion>>backgroundWidth - Width of backgroundbackgroundHeight - Height of backgroundhomeToWorld - Transform from home to world.public void reset()
BackgroundModelreset in class BackgroundModel<boofcv.struct.image.MultiSpectral<T extends boofcv.struct.image.ImageSingleBand>>protected void updateBackground(int x0,
int y0,
int x1,
int y1,
boofcv.struct.image.MultiSpectral<T> frame)
BackgroundModelMovingupdateBackground in class BackgroundModelMoving<boofcv.struct.image.MultiSpectral<T extends boofcv.struct.image.ImageSingleBand>,Motion extends georegression.struct.InvertibleTransform<Motion>>protected void _segment(Motion currentToWorld, boofcv.struct.image.MultiSpectral<T> frame, boofcv.struct.image.ImageUInt8 segmented)
_segment in class BackgroundModelMoving<boofcv.struct.image.MultiSpectral<T extends boofcv.struct.image.ImageSingleBand>,Motion extends georegression.struct.InvertibleTransform<Motion>>