Q - Type of pixelT - Type of imagepublic abstract class PixelClassificationModel<Q,T extends Image<Q,T>> extends Object implements ImageClassificationModel<T>
| Constructor and Description |
|---|
PixelClassificationModel() |
| Modifier and Type | Method and Description |
|---|---|
FImage |
classifyImage(T im)
Classify the given image and return the corresponding probability map
|
protected abstract float |
classifyPixel(Q pix) |
abstract PixelClassificationModel<Q,T> |
clone()
Clone the model
|
boolean |
estimate(List<? extends IndependentPair<T,FImage>> data)
Estimates the model from the observations in the list of data.
|
protected abstract T[] |
getArray(int length) |
int |
numItemsToEstimate() |
FImage |
predict(T data)
Uses the model to predict dependent data from an independent value.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlearnModelpublic PixelClassificationModel()
protected abstract float classifyPixel(Q pix)
public FImage classifyImage(T im)
ImageClassificationModelclassifyImage in interface ImageClassificationModel<T extends Image<Q,T>>im - the image to classifypublic boolean estimate(List<? extends IndependentPair<T,FImage>> data)
EstimatableModelEstimatableModel.numItemsToEstimate() pairs of dependent
and independent data. It may contain more, in which case the estimate
method may choose to make use of this data for validation, or obtaining a
better model by a least squares method for example.estimate in interface EstimatableModel<T extends Image<Q,T>,FImage>data - Data with which to estimate the modelEstimatableModel.numItemsToEstimate()public int numItemsToEstimate()
numItemsToEstimate in interface EstimatableModel<T extends Image<Q,T>,FImage>public FImage predict(T data)
Modelpublic abstract PixelClassificationModel<Q,T> clone()
EstimatableModel