T - the type of image that the model can be applied topublic interface ImageClassificationModel<T extends org.openimaj.image.Image<?,T>> extends org.openimaj.math.model.EstimatableModel<T,org.openimaj.image.FImage>, Serializable
EstimatableModel constructed between
an generic image and a probability map in the form of an FImage.
Potential uses for such a model are for the prediction of certain classes of
pixels in an image. For example, a model could be constructed that predicted
skin-tones in an image based on hue and saturation values of pixels. With
such a model, a colour image could be presented, and a probability map would
be returned.| Modifier and Type | Method and Description |
|---|---|
org.openimaj.image.FImage |
classifyImage(T im)
Classify the given image and return the corresponding probability map
|
ImageClassificationModel<T> |
clone() |
void |
learnModel(T... images)
Learn the model from the given
MBFImages. |
void learnModel(T... images)
MBFImages.images - the images to learn fromorg.openimaj.image.FImage classifyImage(T im)
im - the image to classifyImageClassificationModel<T> clone()