public enum OutsideKernelPolicy extends Enum<OutsideKernelPolicy>
Enum Constant and Description |
---|
AS_OFF
Pretend any parts of the neighborhood that lie outside the scene are being off-valued.
|
AS_ON
Pretend any parts of the neighborhood that lie outside the scene are being on-valued.
|
IGNORE_OUTSIDE
Ignore any parts of the neighborhood that lie outside the scene.
|
Modifier and Type | Method and Description |
---|---|
static OutsideKernelPolicy |
as(boolean on)
|
boolean |
isIgnoreOutside()
When true, any parts of the neighborhood that lie outside the scene are not considered in
kernel neighborhoods.
|
boolean |
isOutsideOn()
In cases where
isIgnoreOutside() is false, then whether to treat voxels that lie
outside the scene as on (if true) or off (if false). |
int |
multiplex(int ignored,
int asOn,
int asOff)
Multiplexes between three-values depending on which policy is currently selected.
|
static OutsideKernelPolicy |
of(boolean ignoreOutside,
boolean outsideHigh)
Multiplexes between all three possible enums.
|
static OutsideKernelPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OutsideKernelPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OutsideKernelPolicy IGNORE_OUTSIDE
public static final OutsideKernelPolicy AS_ON
public static final OutsideKernelPolicy AS_OFF
public static OutsideKernelPolicy[] values()
for (OutsideKernelPolicy c : OutsideKernelPolicy.values()) System.out.println(c);
public static OutsideKernelPolicy 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 static OutsideKernelPolicy as(boolean on)
public static OutsideKernelPolicy of(boolean ignoreOutside, boolean outsideHigh)
ignoreOutside
- if true, then IGNORE_OUTSIDE
is selected.outsideHigh
- if ignoreOutside==false
, and determines whether AS_ON
(if
true) is selected or AS_OFF
(if false).AS_ON
and AS_OFF
or IGNORE_OUTSIDE
.public boolean isIgnoreOutside()
public boolean isOutsideOn()
isIgnoreOutside()
is false, then whether to treat voxels that lie
outside the scene as on (if true) or off (if false).public int multiplex(int ignored, int asOn, int asOff)
ignored
- the value to return if current policy is IGNORE_OUTSIDE
asOn
- the value to return if current policy is AS_ON
asOff
- the value to return if current policy is AS_OFF
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.