public static enum ConnectedComponentLabeler.Algorithm extends Enum<ConnectedComponentLabeler.Algorithm>
ConnectedComponent
s.Enum Constant and Description |
---|
FLOOD_FILL
The flood-fill algorithm
|
SINGLE_PASS
A single-pass algorithm
|
TWO_PASS
The standard two-pass algorithm.
|
Modifier and Type | Method and Description |
---|---|
abstract List<ConnectedComponent> |
findComponents(FImage image,
float bgThreshold,
ConnectedComponent.ConnectMode mode)
Find the connected components in an image.
|
static ConnectedComponentLabeler.Algorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectedComponentLabeler.Algorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectedComponentLabeler.Algorithm SINGLE_PASS
public static final ConnectedComponentLabeler.Algorithm TWO_PASS
public static final ConnectedComponentLabeler.Algorithm FLOOD_FILL
public static ConnectedComponentLabeler.Algorithm[] values()
for (ConnectedComponentLabeler.Algorithm c : ConnectedComponentLabeler.Algorithm.values()) System.out.println(c);
public static ConnectedComponentLabeler.Algorithm 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 List<ConnectedComponent> findComponents(FImage image, float bgThreshold, ConnectedComponent.ConnectMode mode)
image
- the imagebgThreshold
- the threshold below which pixels should be considered to
be backgroundmode
- the ConnectedComponent.ConnectMode
.