org.shapelogic.color
Interface IColorRange

All Superinterfaces:
ColorChannels, HasArea, HasPixelArea, IColorAndVariance, PixelHandler
All Known Implementing Classes:
ColorEdgeArea, ColorRange, GrayEdgeArea, GrayRange

public interface IColorRange
extends IColorAndVariance

ColorRangeI is a color aggregate that exist in an defined range.
ColorAndVarianceI is an interface for a color / gray implementations.

Author:
Sami Badawi

Method Summary
 boolean colorInRange(int color)
          Whether a color belong to the ColorRange.
 double distanceFromRange(int color)
          Distance of input color from this ColorRange.
 double distanceFromRangeCenter(int color)
          Distance of input color from this ColorRange.
 int getColorCenter()
           
 IColorDistance getDistance()
           
 double getMaxDistance()
           
 boolean isRangeFrozen()
          If the ColorRange can change.
 void setColorCenter(int center)
           
 void setDistance(IColorDistance distance)
           
 void setMaxDistance(double distance)
           
 
Methods inherited from interface org.shapelogic.color.IColorAndVariance
getMeanBlue, getMeanColor, getMeanGreen, getMeanRed, getStandardDeviation, merge
 
Methods inherited from interface org.shapelogic.imageutil.PixelHandler
putPixel
 
Methods inherited from interface org.shapelogic.color.ColorChannels
getColorChannels
 
Methods inherited from interface org.shapelogic.imageutil.HasArea
getArea
 
Methods inherited from interface org.shapelogic.imageutil.HasPixelArea
getPixelArea, setPixelArea
 

Method Detail

colorInRange

boolean colorInRange(int color)
Whether a color belong to the ColorRange.


distanceFromRange

double distanceFromRange(int color)
Distance of input color from this ColorRange.


distanceFromRangeCenter

double distanceFromRangeCenter(int color)
Distance of input color from this ColorRange.


getMaxDistance

double getMaxDistance()

setMaxDistance

void setMaxDistance(double distance)

getColorCenter

int getColorCenter()

setColorCenter

void setColorCenter(int center)

isRangeFrozen

boolean isRangeFrozen()
If the ColorRange can change.


getDistance

IColorDistance getDistance()

setDistance

void setDistance(IColorDistance distance)


Copyright © 2009. All Rights Reserved.