public static enum ComponentPostprocess.ProcessMode extends Enum<ComponentPostprocess.ProcessMode>
Enum Constant and Description |
---|
DILATE_TOPOLOGY_PRESERVING
Dilates components with a given mask size while preserving
topology in the sense that the number of components does not
change.
|
ERASE_LARGE_COMPS
Delete components above a size threshold from the image.
|
ERASE_ROUND_COMPS
Delete components with a rounded shape instead of an sustained shape.
|
ERASE_SMALL_COMPS
Delete components below a size threshold from the image.
|
EREASE_NON_COMPACT_COMPS
Delete non-compact regions.
|
LINK_ADJ_COMPS
Link adjacent components with a line if distance below threshold.
|
LINK_ADJ_PIXELS
Link adjacent pixels if distance below threshold.
|
VORONOI_EXPAND
Deprecated.
This process mode is very inefficient and slow,
use
DILATE_TOPOLOGY_PRESERVING instead. |
Modifier and Type | Method and Description |
---|---|
static ComponentPostprocess.ProcessMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ComponentPostprocess.ProcessMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ComponentPostprocess.ProcessMode ERASE_SMALL_COMPS
Set threshold with method ComponentPostprocess.setMinimalComponentSize(int)
.
public static final ComponentPostprocess.ProcessMode ERASE_LARGE_COMPS
Set threshold with method ComponentPostprocess.setMaximalComponentSize(int)
.
public static final ComponentPostprocess.ProcessMode LINK_ADJ_COMPS
Set distance with method ComponentPostprocess.setMaximalComponentDistance(int)
.
public static final ComponentPostprocess.ProcessMode LINK_ADJ_PIXELS
Set distance with method ComponentPostprocess.setMaximalComponentDistance(int)
.
@Deprecated public static final ComponentPostprocess.ProcessMode VORONOI_EXPAND
DILATE_TOPOLOGY_PRESERVING
instead.The operation works with label images as well as binary images. Note that the type of the result image equals the type of the input image which is processed.
Set the dilation mask size to apply with
method ComponentPostprocess.setMaximalVoronoiExpansionDistance(int)
.
public static final ComponentPostprocess.ProcessMode ERASE_ROUND_COMPS
Set threshold with method ComponentPostprocess.setRoundnessThreshold(double)
.
public static final ComponentPostprocess.ProcessMode EREASE_NON_COMPACT_COMPS
MTBRegion2D.getCircularity()
.
public static final ComponentPostprocess.ProcessMode DILATE_TOPOLOGY_PRESERVING
Note that components are allowed to touch each other in the result label image.
Specify the mask size using ComponentPostprocess.setDilateMaskSize(int)
public static ComponentPostprocess.ProcessMode[] values()
for (ComponentPostprocess.ProcessMode c : ComponentPostprocess.ProcessMode.values()) System.out.println(c);
public static ComponentPostprocess.ProcessMode 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 nullCopyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.