Class DilationContext
Object
DilationContext
Additional parameters for influencing a morphologicla dilation opperation.
- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionDilationContext
(OutsideKernelPolicy outsideKernelPolicy, boolean useZ, boolean bigNeighborhood, Optional<Predicate<Point3i>> precondition) Create without a post-condition.DilationContext
(OutsideKernelPolicy outsideKernelPolicy, boolean useZ, boolean bigNeighborhood, Optional<Predicate<Point3i>> precondition, Optional<AcceptIterationPredicate> postcondition) Create with a post-condition. -
Method Summary
Modifier and TypeMethodDescriptionCreates a kernel for performing the dilation.How the kernel is applied to the scene.If defined, a condition which must be satisfied after an iteration occurs, otherwise no more iterations occur.
-
Constructor Details
-
DilationContext
public DilationContext(OutsideKernelPolicy outsideKernelPolicy, boolean useZ, boolean bigNeighborhood, Optional<Predicate<Point3i>> precondition) Create without a post-condition.- Parameters:
outsideKernelPolicy
- how to handle voxels whose neighbors are outside the scene.useZ
- if true, the dilation also occurs in the Z-dimension, otherwise in the XY-dimensions only.bigNeighborhood
- if true, a big neighborhood is used 2D-plane (8-connected instead of 4-connected), but not in Z-direction (remains always 2-connected).precondition
- if defined, a condition which must be satisfied on a voxel, before any voxel can be dilated.
-
DilationContext
public DilationContext(OutsideKernelPolicy outsideKernelPolicy, boolean useZ, boolean bigNeighborhood, Optional<Predicate<Point3i>> precondition, Optional<AcceptIterationPredicate> postcondition) Create with a post-condition.- Parameters:
outsideKernelPolicy
- how to handle voxels whose neighbors are outside the scene.useZ
- if true, the dilation also occurs in the Z-dimension, otherwise in the XY-dimensions only.bigNeighborhood
- if true, a big neighborhood is used 2D-plane (8-connected instead of 4-connected), but not in Z-direction (remains always 2-connected).precondition
- if defined, a condition which must be satisfied on a voxel, before any voxel can be dilated.postcondition
- if defined, a condition which must be satisfied after an iteration occurs, otherwise no more iterations occur.
-
-
Method Details
-
createKernel
Creates a kernel for performing the dilation.- Returns:
- the kernel that performs the dilation.
-
getKernelApplication
How the kernel is applied to the scene. -
getPostcondition
If defined, a condition which must be satisfied after an iteration occurs, otherwise no more iterations occur.
-