All Implemented Interfaces:
Provider<Mask>, ProviderAsStack

public class IfNotEmpty extends IfPredicateBase
The current mask is returned if it's non-empty (at least one on voxel) otherwise maskElse is returned.
Author:
Owen Feehan
  • Constructor Details

    • IfNotEmpty

      public IfNotEmpty()
  • Method Details

    • predicate

      protected boolean predicate(Mask mask)
      Description copied from class: IfPredicateBase
      Evaluates a predicate condition on the input mask.
      Specified by:
      predicate in class IfPredicateBase
      Parameters:
      mask - the input Mask to evaluate
      Returns:
      true if the predicate condition is satisfied, false otherwise