Class IfObjectFilter

Object
AnchorBean<MaskProvider>
InitializableBean<MaskProvider, ImageInitialization>
ImageBean<MaskProvider>
BeanProviderAsStackBase<MaskProvider, Mask>
MaskProvider
MaskProviderUnary
IfPredicateBase
IfObjectFilter
All Implemented Interfaces:
Provider<Mask>, ProviderAsStack

public class IfObjectFilter extends IfPredicateBase
The current mask is returned if the mask (treated as an object) passed an object-filter, otherwise maskElse is returned.
Author:
Owen Feehan
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    ObjectFilter
     
    protected boolean
    predicate(Mask mask)
    Evaluates a predicate condition on the input mask.
    void
    setFilter(ObjectFilter filter)
     

    Methods inherited from class org.anchoranalysis.plugin.image.bean.mask.provider.predicate.IfPredicateBase

    createFromMask, getMaskElse, setMaskElse

    Methods inherited from class org.anchoranalysis.image.bean.provider.MaskProviderUnary

    get, getMask, setMask

    Methods inherited from class org.anchoranalysis.image.bean.provider.MaskProvider

    getAsStack

    Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean

    getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization

    Methods inherited from class org.anchoranalysis.bean.AnchorBean

    checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • IfObjectFilter

      public IfObjectFilter()
  • Method Details

    • predicate

      protected boolean predicate(Mask mask) throws ProvisionFailedException
      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
      Throws:
      ProvisionFailedException - if there's an error during predicate evaluation
    • getFilter

      public ObjectFilter getFilter()
    • setFilter

      public void setFilter(ObjectFilter filter)