Class DilationContext

Object
org.anchoranalysis.image.voxel.kernel.morphological.DilationContext

public class DilationContext
extends Object
Additional parameters for influencing a morphologicla dilation opperation.
Author:
Owen Feehan
  • 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