infomat.algorithms.labeling
Class RelativeLabeler
java.lang.Object
infomat.algorithms.labeling.Labeler
infomat.algorithms.labeling.RelativeLabeler
- All Implemented Interfaces:
- HasProperties
public class RelativeLabeler
- extends Labeler
Constructs ILabels for IObjectGroups, the first in the centroid.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
matrix
private IMatrix matrix
row
private boolean row
RelativeLabeler
public RelativeLabeler(IMatrix matrix,
boolean row)
RelativeLabeler
public RelativeLabeler(IMatrix matrix,
boolean row,
Properties properties)
getDefaultProperties
public Properties getDefaultProperties()
getPropertyValue
public java.lang.Object getPropertyValue(java.lang.String name)
setProperty
public void setProperty(java.lang.String name,
java.lang.Object value)
throws PropertyNotFoundException
- Throws:
PropertyNotFoundException
getProperties
public Properties getProperties()
setProperties
public void setProperties(Properties properties)
labelSingleGroup
private ILabel labelSingleGroup(IObjectGroup group,
IObjectGroup relGroup)
labelGrouping
public java.util.HashMap<IObjectGroup,ILabel> labelGrouping(IObjectGrouping ioging,
SparseISimilarity similarity)
- Constructs ILables for all IObjectGroup:s in the IObjectGrouping by
choosing the higest ranked IObject:s in the centroids.
- Specified by:
labelGrouping
in class Labeler