public static enum ConnectedComponent.ConnectMode extends Enum<ConnectedComponent.ConnectMode>
ConnectedComponent
s, this enum
determines and specifies how the boundary is calculated; either using a
4-connected rule, or an 8-connected rule.Enum Constant and Description |
---|
CONNECT_4
4-connected edges in the boundary representation
|
CONNECT_8
8-connected edges in the boundary representation
|
Modifier and Type | Method and Description |
---|---|
List<Pixel> |
getNeighbours(FImage image,
int x,
int y,
float bgThreshold)
Get the neighbouring pixels
|
static ConnectedComponent.ConnectMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectedComponent.ConnectMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectedComponent.ConnectMode CONNECT_4
public static final ConnectedComponent.ConnectMode CONNECT_8
public static ConnectedComponent.ConnectMode[] values()
for (ConnectedComponent.ConnectMode c : ConnectedComponent.ConnectMode.values()) System.out.println(c);
public static ConnectedComponent.ConnectMode 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 List<Pixel> getNeighbours(FImage image, int x, int y, float bgThreshold)
image
- the imagex
- the x ordinatey
- the y ordinatebgThreshold
- the threshold for below which pixels should be ignored