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.SupportspcsDOES_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, startProgresspublic 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)
FeatureDescriptorsetProperties in interface FeatureDescriptorsetProperties in class AbstractFeatureDescriptorpublic EnumSet<Descriptor.Supports> supports()
Descriptorsupports in interface Descriptorsupports in class AbstractFeatureDescriptorpublic void run(ij.process.ImageProcessor ip)
Descriptorpublic String getDescription()
FeatureDescriptorFeatureDescriptor.getFeatures().
May return null if no description is implemented - even though this
should be avoided by any means.Copyright © 2013. All Rights Reserved.