org.shapelogic.color
Class ColorDistance1RGB

java.lang.Object
  extended by org.shapelogic.color.ColorDistance1
      extended by org.shapelogic.color.ColorDistance1RGB
All Implemented Interfaces:
IColorDistance
Direct Known Subclasses:
ColorDistanceWithImage1RGB

public class ColorDistance1RGB
extends ColorDistance1

Color distance for RGB.

Author:
Sami Badawi

Field Summary
protected  int[] _referenceColorChannels
           
 
Fields inherited from class org.shapelogic.color.ColorDistance1
_referenceColor, INSTANCE
 
Constructor Summary
ColorDistance1RGB()
           
 
Method Summary
 double distance(int color1, int color2)
           
 double distanceToReferenceColor(int color)
           
 void setReferenceColor(int color)
           
 
Methods inherited from class org.shapelogic.color.ColorDistance1
distance, distance, getInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_referenceColorChannels

protected int[] _referenceColorChannels
Constructor Detail

ColorDistance1RGB

public ColorDistance1RGB()
Method Detail

distance

public double distance(int color1,
                       int color2)
Specified by:
distance in interface IColorDistance
Overrides:
distance in class ColorDistance1

setReferenceColor

public void setReferenceColor(int color)
Specified by:
setReferenceColor in interface IColorDistance
Overrides:
setReferenceColor in class ColorDistance1

distanceToReferenceColor

public double distanceToReferenceColor(int color)
Specified by:
distanceToReferenceColor in interface IColorDistance
Overrides:
distanceToReferenceColor in class ColorDistance1


Copyright © 2009. All Rights Reserved.