public class ColorHistogram extends AbstractFeatureDescriptor
minkowski.ManhattanDistanceFunction
, since the histograms are normalizedcolorhistogram.HistogramIntersectionDistanceFunction
(equivalent to Manhattan on normalized
histograms)colorhistogram.HSBHistogramQuadraticDistanceFunction
Modifier and Type | Class and Description |
---|---|
static class |
ColorHistogram.TYPE
Type defining which type of colorspace should be used
|
Descriptor.Supports
pcs
DOES_ALL
Constructor and Description |
---|
ColorHistogram()
Constructor for 7x3x3 = 63 bins.
|
ColorHistogram(int quanth,
int quants,
int quantb) |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns a short plain Text description about the Descriptor and the
semantics of the double array obtained from
FeatureDescriptor.getFeatures() . |
void |
run(ij.process.ImageProcessor ip)
Start processing of this algorithm on the given image processor.
|
void |
setProperties(LibProperties properties)
Injects the properties class that can be used to retrieve several
properties.
|
ColorHistogram |
setType(ColorHistogram.TYPE type)
set the type of extraction to either RGB or HSB
|
EnumSet<Descriptor.Supports> |
supports()
Determine the capabilities of this algorithm.
|
addData, addData, addData, addPropertyChangeListener, endProgress, firePropertyChange, getFeatures, getMask, inMask, setMask, startProgress
public ColorHistogram()
public ColorHistogram(int quanth, int quants, int quantb)
quanth
- Bins in Hue/Redquants
- Bins in Saturation/Greenquantb
- Bins in Brightness/Bluepublic ColorHistogram setType(ColorHistogram.TYPE type)
type
- public void setProperties(LibProperties properties)
FeatureDescriptor
setProperties
in interface FeatureDescriptor
setProperties
in class AbstractFeatureDescriptor
public EnumSet<Descriptor.Supports> supports()
Descriptor
supports
in interface Descriptor
supports
in class AbstractFeatureDescriptor
public void run(ij.process.ImageProcessor ip)
Descriptor
public String getDescription()
FeatureDescriptor
FeatureDescriptor.getFeatures()
.
May return null if no description is implemented - even though this
should be avoided by any means.Copyright © 2013. All Rights Reserved.