public class BackgroundGmmCommon
extends java.lang.Object
BackgroundAlgorithmGmm. This is where most of the important
mathematics is contained.| Modifier and Type | Field and Description |
|---|---|
float |
decay |
int |
gaussianStride |
int |
imageHeight |
int |
imageWidth |
float |
initialVariance |
float[] |
inputPixel |
boofcv.core.image.GImageGray |
inputWrapperG |
boofcv.core.image.GImageMultiBand |
inputWrapperMB |
float |
learningRate |
float |
maxDistance |
int |
maxGaussians |
boofcv.struct.RArray2D_F32 |
model |
int |
modelStride |
int |
numBands |
float |
significantWeight |
int |
unknownValue |
| Constructor and Description |
|---|
BackgroundGmmCommon(float learningPeriod,
float decayCoef,
int maxGaussians,
boofcv.struct.image.ImageType imageType) |
| Modifier and Type | Method and Description |
|---|---|
int |
checkBackground(float[] pixelValue,
float[] dataRow,
int modelIndex)
Checks to see if the the pivel value refers to the background or foreground
|
int |
checkBackground(float pixelValue,
float[] dataRow,
int modelIndex)
Checks to see if the the pivel value refers to the background or foreground
|
float |
getInitialVariance() |
float |
getMaxDistance() |
float |
getSignificantWeight() |
void |
setInitialVariance(float initialVariance) |
void |
setLearningPeriod(float period) |
void |
setMaxDistance(float maxDistance) |
void |
setSignificantWeight(float significantWeight) |
int |
updateMixture(float[] pixelValue,
float[] dataRow,
int modelIndex)
Updates the mixtures of gaussian and determines if the pixel matches the background model
|
int |
updateMixture(float pixelValue,
float[] dataRow,
int modelIndex)
Updates the mixtures of gaussian and determines if the pixel matches the background model
|
void |
updateWeightAndPrune(float[] dataRow,
int modelIndex,
int ng,
int bestIndex,
float bestWeight)
Updates the weight of each Gaussian and prunes one which have a negative weight after the update.
|
public boofcv.struct.RArray2D_F32 model
public int imageWidth
public int imageHeight
public int numBands
public int modelStride
public int gaussianStride
public float learningRate
public float decay
public int maxGaussians
public float maxDistance
public float significantWeight
public float initialVariance
public int unknownValue
public boofcv.core.image.GImageMultiBand inputWrapperMB
public float[] inputPixel
public boofcv.core.image.GImageGray inputWrapperG
public BackgroundGmmCommon(float learningPeriod,
float decayCoef,
int maxGaussians,
boofcv.struct.image.ImageType imageType)
public int updateMixture(float[] pixelValue,
float[] dataRow,
int modelIndex)
public void updateWeightAndPrune(float[] dataRow,
int modelIndex,
int ng,
int bestIndex,
float bestWeight)
public int updateMixture(float pixelValue,
float[] dataRow,
int modelIndex)
public int checkBackground(float[] pixelValue,
float[] dataRow,
int modelIndex)
public int checkBackground(float pixelValue,
float[] dataRow,
int modelIndex)
public void setLearningPeriod(float period)
public float getMaxDistance()
public void setMaxDistance(float maxDistance)
public float getSignificantWeight()
public void setSignificantWeight(float significantWeight)
public float getInitialVariance()
public void setInitialVariance(float initialVariance)