Class ObjectFilter


public abstract class ObjectFilter
extends ImageBean<ObjectFilter>
Base class for filtering an ObjectCollection to remove objects according to a criteria.

The filtering criteria is implemented by overriding a method in a sub-class.

Author:
Owen Feehan
  • Constructor Details

  • Method Details

    • filter

      public abstract org.anchoranalysis.image.voxel.object.ObjectCollection filter​(org.anchoranalysis.image.voxel.object.ObjectCollection objectsToFilter, Optional<Dimensions> dimensions) throws OperationFailedException
      Filters an ObjectCollection to remove objects.
      Parameters:
      objectsToFilter - the objects to filter.
      dimensions - image-dimensions.
      Returns:
      a new object-collection containing only the objects that passed the filter.
      Throws:
      OperationFailedException - if the operation cannot complete successfully.