Class KernelApplicationParameters
Object
KernelApplicationParameters
Parameters used for applying a
Kernel
to a BinaryVoxels
.- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionKernelApplicationParameters
(OutsideKernelPolicy outsideKernelPolicy, boolean useZ) Creates a newKernelApplicationParameters
instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
How to handle voxels that appear in a neighborhood that lies outside the scene boundaries.int
hashCode()
boolean
When true, any parts of the neighborhood that lie outside the scene are not considered in kernel neighborhoods.boolean
True only when voxels outside the scene should not be ignored and considered as off.boolean
In cases whereisIgnoreOutside()
is false, then whether to treat voxels that lie outside the scene as on (if true) or off (if false).boolean
True only when voxels outside the scene should not be ignored and considered as on.boolean
isUseZ()
Whether to additionally apply the kernel along the Z dimension, as well as X and Y?toString()
-
Constructor Details
-
KernelApplicationParameters
Creates a newKernelApplicationParameters
instance.- Parameters:
outsideKernelPolicy
- How to handle voxels that appear in a neighborhood that lies outside the scene boundaries.useZ
- Whether to additionally apply the kernel along the Z dimension, as well as X and Y?
-
-
Method Details
-
isIgnoreOutside
public boolean isIgnoreOutside()When true, any parts of the neighborhood that lie outside the scene are not considered in kernel neighborhoods.- Returns:
- true if parts of the neighborhood that lie outside the scene should be ignored.
-
isOutsideOn
public boolean isOutsideOn()In cases whereisIgnoreOutside()
is false, then whether to treat voxels that lie outside the scene as on (if true) or off (if false).- Returns:
- true if voxels lying outside the scene should be treated as on in the above circumstances, otherwise they are treated as off.
-
isOutsideOffUnignored
public boolean isOutsideOffUnignored()True only when voxels outside the scene should not be ignored and considered as off.- Returns:
- true iff both conditions above are true.
-
isOutsideOnUnignored
public boolean isOutsideOnUnignored()True only when voxels outside the scene should not be ignored and considered as on.- Returns:
- true iff both conditions above are true.
-
getOutsideKernelPolicy
How to handle voxels that appear in a neighborhood that lies outside the scene boundaries. -
isUseZ
public boolean isUseZ()Whether to additionally apply the kernel along the Z dimension, as well as X and Y? -
equals
-
hashCode
public int hashCode() -
toString
-