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
MBFImage s. |
getArray
classifyImage, estimate, numItemsToEstimate, predict
protected CachingMultivariateGaussian gauss
public SingleGaussianPixelModel(int ndims)
MBFImage
s 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)
ImageClassificationModel
MBFImage
s.images
- the images to learn frompublic SingleGaussianPixelModel clone()
EstimatableModel
clone
in interface ImageClassificationModel<MBFImage>
clone
in interface EstimatableModel<MBFImage,FImage>
clone
in class PixelClassificationModel<Float[],MBFImage>