public class DilationContext extends Object
Constructor and Description |
---|
DilationContext(OutsideKernelPolicy outsideKernelPolicy,
boolean useZ,
boolean bigNeighborhood,
Optional<java.util.function.Predicate<Point3i>> precondition)
Create without a post-condition.
|
DilationContext(OutsideKernelPolicy outsideKernelPolicy,
boolean useZ,
boolean bigNeighborhood,
Optional<java.util.function.Predicate<Point3i>> precondition,
Optional<AcceptIterationPredicate> postcondition)
Create with a post-condition.
|
Modifier and Type | Method and Description |
---|---|
BinaryKernel |
createKernel()
Creates a kernel for performing the dilation.
|
KernelApplicationParameters |
getKernelApplication()
How the kernel is applied to the scene.
|
Optional<AcceptIterationPredicate> |
getPostcondition()
If defined, a condition which must be satisfied after an iteration occurs, otherwise
no more iterations occur.
|
public DilationContext(OutsideKernelPolicy outsideKernelPolicy, boolean useZ, boolean bigNeighborhood, Optional<java.util.function.Predicate<Point3i>> precondition)
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.public DilationContext(OutsideKernelPolicy outsideKernelPolicy, boolean useZ, boolean bigNeighborhood, Optional<java.util.function.Predicate<Point3i>> precondition, Optional<AcceptIterationPredicate> postcondition)
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.public BinaryKernel createKernel()
public KernelApplicationParameters getKernelApplication()
public Optional<AcceptIterationPredicate> getPostcondition()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.