Enum WeightedCategoricalMatcher.DimReduction
- java.lang.Object
-
- java.lang.Enum<WeightedCategoricalMatcher.DimReduction>
-
- dev.brachtendorf.jimagehash.matcher.categorize.WeightedCategoricalMatcher.DimReduction
-
- All Implemented Interfaces:
Serializable,Comparable<WeightedCategoricalMatcher.DimReduction>
- Enclosing class:
- WeightedCategoricalMatcher
public static enum WeightedCategoricalMatcher.DimReduction extends Enum<WeightedCategoricalMatcher.DimReduction>
- Author:
- Kilian
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BINARY_TREEConstruct a binary tree prior to recomputing the clusters.K_MEANS_APPROXIMATIONUse KMeans cluster to fit multiple clusters into subcategories reducing the number of clusters images have to be checked against.NONEUse no metric to speed up cluster recomputation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WeightedCategoricalMatcher.DimReductionvalueOf(String name)Returns the enum constant of this type with the specified name.static WeightedCategoricalMatcher.DimReduction[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final WeightedCategoricalMatcher.DimReduction NONE
Use no metric to speed up cluster recomputation.
-
K_MEANS_APPROXIMATION
public static final WeightedCategoricalMatcher.DimReduction K_MEANS_APPROXIMATION
Use KMeans cluster to fit multiple clusters into subcategories reducing the number of clusters images have to be checked against. This approach usually performs well if enough images are added to the matcher but may fail at other occasions. Usually the fastest approach. It still is an approximation.!
-
BINARY_TREE
public static final WeightedCategoricalMatcher.DimReduction BINARY_TREE
Construct a binary tree prior to recomputing the clusters. This step takes time and the tree might not be able to be pruned quickly. It's usually slower than KMeans but results in correct computation.
-
-
Method Detail
-
values
public static WeightedCategoricalMatcher.DimReduction[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (WeightedCategoricalMatcher.DimReduction c : WeightedCategoricalMatcher.DimReduction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WeightedCategoricalMatcher.DimReduction valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-