org.shapelogic.color
Interface ColorHypothesis

All Known Implementing Classes:
SimpleColorHypothesis

public interface ColorHypothesis

ColorHypothesis interface.

Author:
Sami Badawi

Method Summary
 boolean addColor(IColorAndVariance color)
          Try to add a color.
 IColorAndVariance getBackground()
           
 java.util.Collection<IColorAndVariance> getColors()
           
 double getMaxDistance()
          There will not always be a global maxDistance.
 boolean mergable(IColorAndVariance color1, IColorAndVariance color2)
          Is it possible to merge the 2 colors in the given context.
 void setBackground(IColorAndVariance color)
           
 void setMaxDistance(double maxDistance)
           
 

Method Detail

getColors

java.util.Collection<IColorAndVariance> getColors()

addColor

boolean addColor(IColorAndVariance color)
Try to add a color.
This might cause a merge instead of a new color. Return true if a new color was created.


getBackground

IColorAndVariance getBackground()

setBackground

void setBackground(IColorAndVariance color)

getMaxDistance

double getMaxDistance()
There will not always be a global maxDistance.


setMaxDistance

void setMaxDistance(double maxDistance)

mergable

boolean mergable(IColorAndVariance color1,
                 IColorAndVariance color2)
Is it possible to merge the 2 colors in the given context.



Copyright © 2009. All Rights Reserved.