public class SingleGaussianPixelModel extends MBFPixelClassificationModel
MBFPixelClassificationModel that classifies an individual pixel by
comparing it to a CachingMultivariateGaussian. The Gaussian is learnt
from the values of the positive pixel samples given in training. The
probability returned by the classification is determined from the PDF of the
Gaussian at the given pixel.| Modifier and Type | Field and Description |
|---|---|
protected CachingMultivariateGaussian |
gauss |
ndims| Constructor and Description |
|---|
SingleGaussianPixelModel(int ndims)
Construct with the given number of dimensions.
|
| Modifier and Type | Method and Description |
|---|---|
protected float |
classifyPixel(Float[] pix) |
SingleGaussianPixelModel |
clone()
Clone the model
|
void |
learnModel(MBFImage... images)
Learn the model from the given
MBFImages. |
getArrayclassifyImage, estimate, numItemsToEstimate, predictprotected CachingMultivariateGaussian gauss
public SingleGaussianPixelModel(int ndims)
MBFImages you wish to classify.ndims - the number of dimensions.protected float classifyPixel(Float[] pix)
classifyPixel in class PixelClassificationModel<Float[],MBFImage>public void learnModel(MBFImage... images)
ImageClassificationModelMBFImages.images - the images to learn frompublic SingleGaussianPixelModel clone()
EstimatableModelclone in interface ImageClassificationModel<MBFImage>clone in interface EstimatableModel<MBFImage,FImage>clone in class PixelClassificationModel<Float[],MBFImage>