Class ProcessVoxelNeighborFactory

Object
org.anchoranalysis.image.voxel.iterator.neighbor.ProcessVoxelNeighborFactory

public class ProcessVoxelNeighborFactory
extends Object
Creates ProcessVoxelNeighbor to match certain circumstances.
Author:
Owen Feehan
  • Method Details

    • within

      public static <T> ProcessVoxelNeighbor<T> within​(Optional<ObjectMask> containingMask, Extent extentFallback, ProcessVoxelNeighborAbsolute<T> process)
      Creates to process neighbors that must lie within either an object-mask or an extent (as a fallback).
      Parameters:
      containingMask - if defined, the process is restricted to only process points within this object-mask.
      extentFallback - if containingMask is not defined, then as a fallback, the process is restricted to only process points in this extent.
      process - a process which will be wrapped inside a restriction.
      Returns:
      a new process with a restriction on the existing process.
    • withinExtent

      public static <T> ProcessVoxelNeighbor<T> withinExtent​(ProcessVoxelNeighborAbsoluteWithSlidingBuffer<T> process)
      Creates to process neighbors that must lie within an extent.

      The extent is derived from the SlidingBuffer associated with process.

      Parameters:
      process - a process which will be wrapped inside a restriction.
      Returns:
      a new process with a restriction on the existing process.
    • withinMask

      public static <T> ProcessVoxelNeighbor<T> withinMask​(ObjectMask object, ProcessChangedPointAbsoluteMasked<T> process)
      Creates to process neighbors that must lie within an ObjectMask.
      Parameters:
      object - the object-mask voxels must lie within.
      process - a process which will be wrapped inside a restriction.
      Returns:
      a new process with a restriction on the existing process.
    • withinMask

      public static <T> ProcessVoxelNeighbor<T> withinMask​(ObjectMask object, ProcessVoxelNeighborAbsolute<T> process)
      Creates to process neighbors that must lie within an ObjectMask.
      Parameters:
      object - the object-mask voxels must lie within.
      process - a process which will be wrapped inside a restriction.
      Returns:
      a new process with a restriction on the existing process.