public class ReferenceColorSimilarity extends AbstractFeatureDescriptor
H.-P. Kriegel, E. Schubert, A. Zimek
Evaluation of Multiple Clustering Solutions
In 2nd MultiClust Workshop: Discovering, Summarizing and Using Multiple Clusterings Held in Conjunction with ECML
PKDD 2011, Athens, Greece: 55–66, 2011.
[..] we compute some simple color analysis on the pictures. We defined a set of 77 colors spaced evenly in HSV color space (18 hues with 100% and 50% each in saturation and brightness plus 5 grey values for saturation 0%), then computed the average pixel color similarity to these colors for each image to obtain object reference scorings.This code is contributed to jFeatureLib from the ELKI data mining project at http://elki.dbs.ifi.lmu.de/ Recommended distance functions for this feature:
minkowski.ManhattanDistanceFunction
, since the histograms are normalizedDescriptor.Supports
pcs
DOES_ALL
Constructor and Description |
---|
ReferenceColorSimilarity()
Constructor for 18*2*2 + 5 = 77 colors.
|
ReferenceColorSimilarity(int[] colors)
Constructor with reference colors.
|
ReferenceColorSimilarity(int numhbins,
int numsbins,
int numbbins)
Constructor, using 2*numbbins+1 shades of gray.
|
ReferenceColorSimilarity(int numhbins,
int numsbins,
int numbbins,
int numbbinsG)
Constructor for (numhbins * numsbins * numbbins + numbbinsG) colors.
|
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.
|
EnumSet<Descriptor.Supports> |
supports()
Determine the capabilities of this algorithm.
|
addData, addData, addData, addPropertyChangeListener, endProgress, firePropertyChange, getFeatures, getMask, inMask, setMask, startProgress
public ReferenceColorSimilarity()
public ReferenceColorSimilarity(int numhbins, int numsbins, int numbbins)
numhbins
- Bins in Huenumsbins
- Bins in Saturationnumbbins
- Bins in Brightnesspublic ReferenceColorSimilarity(int numhbins, int numsbins, int numbbins, int numbbinsG)
numhbins
- Bins in Huenumsbins
- Bins in Saturationnumbbins
- Bins in BrightnessnumbbinsG
- Number of different grey shadespublic ReferenceColorSimilarity(int[] colors)
colors
- Existing color arraypublic 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.