public static enum BasicShapeDescriptor.BasicShapeDescriptorType extends Enum<BasicShapeDescriptor.BasicShapeDescriptorType>
Enum Constant and Description |
---|
AREA
The area of the component
|
CENTROID
The centroid of the component
|
CHFIT
The ratio of the area of the component to the area of its convex hull
|
COMPACTNESS
The compactness of the component.
|
CORNERS
The estimated number of corners of the component
|
DIRECTION
The primary orientation of the component
|
ELONGATEDNESS
The elongatedness of the component.
|
Modifier and Type | Method and Description |
---|---|
abstract DoubleFV |
getFeatureVector(BasicShapeDescriptor desc)
Create a @link{FeatureVector} representation of the specified
description
|
static BasicShapeDescriptor.BasicShapeDescriptorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BasicShapeDescriptor.BasicShapeDescriptorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BasicShapeDescriptor.BasicShapeDescriptorType AREA
PixelSet.calculateArea()
public static final BasicShapeDescriptor.BasicShapeDescriptorType CENTROID
PixelSet.calculateCentroid()
public static final BasicShapeDescriptor.BasicShapeDescriptorType DIRECTION
PixelSet.calculateDirection()
public static final BasicShapeDescriptor.BasicShapeDescriptorType ELONGATEDNESS
public static final BasicShapeDescriptor.BasicShapeDescriptorType COMPACTNESS
public static final BasicShapeDescriptor.BasicShapeDescriptorType CHFIT
public static final BasicShapeDescriptor.BasicShapeDescriptorType CORNERS
public static BasicShapeDescriptor.BasicShapeDescriptorType[] values()
for (BasicShapeDescriptor.BasicShapeDescriptorType c : BasicShapeDescriptor.BasicShapeDescriptorType.values()) System.out.println(c);
public static BasicShapeDescriptor.BasicShapeDescriptorType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract DoubleFV getFeatureVector(BasicShapeDescriptor desc)
desc
- the descriptor