infomat.algorithms.labeling
Class RelativeLabeler

java.lang.Object
  extended by infomat.algorithms.labeling.Labeler
      extended by infomat.algorithms.labeling.RelativeLabeler
All Implemented Interfaces:
HasProperties

public class RelativeLabeler
extends Labeler

Constructs ILabels for IObjectGroups, the first in the centroid.


Field Summary
private  IMatrix matrix
           
private  boolean row
           
 
Fields inherited from class infomat.algorithms.labeling.Labeler
properties
 
Constructor Summary
RelativeLabeler(IMatrix matrix, boolean row)
           
RelativeLabeler(IMatrix matrix, boolean row, Properties properties)
           
 
Method Summary
 Properties getDefaultProperties()
           
 Properties getProperties()
           
 java.lang.Object getPropertyValue(java.lang.String name)
           
 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.
private  ILabel labelSingleGroup(IObjectGroup group, IObjectGroup relGroup)
           
 void setProperties(Properties properties)
           
 void setProperty(java.lang.String name, java.lang.Object value)
           
 
Methods inherited from class infomat.algorithms.labeling.Labeler
getSortedGroupRepresentation, printLabeling, printLabeling
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

matrix

private IMatrix matrix

row

private boolean row
Constructor Detail

RelativeLabeler

public RelativeLabeler(IMatrix matrix,
                       boolean row)

RelativeLabeler

public RelativeLabeler(IMatrix matrix,
                       boolean row,
                       Properties properties)
Method Detail

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