Class AndObjectsWithMasks

Object
AnchorBean<ObjectCollectionProvider>
InitializableBean<ObjectCollectionProvider, ImageInitialization>
ImageBean<ObjectCollectionProvider>
ObjectCollectionProvider
ObjectCollectionProviderUnary
AndObjectsWithMasks
All Implemented Interfaces:
Provider<ObjectCollection>

public class AndObjectsWithMasks extends ObjectCollectionProviderUnary
Reduce the size of individual objects (if neccessary, and minimally) to fit within a binary-mask.

Note the masking overwrites the current objects in situ, so it is often recommended to a duplicate operation beforehand to preserve the existing objects.

This is equivalent to applying a logical AND operation on each voxel for the binary-mask AND object-mask.

Author:
Owen Feehan
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    ObjectCollection
    createFromObjects(ObjectCollection objects)
     
    MaskProvider
     
    void
    setMask(MaskProvider mask)
     

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

    get, getObjects, setObjects

    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

    • AndObjectsWithMasks

      public AndObjectsWithMasks()
  • Method Details

    • createFromObjects

      public ObjectCollection createFromObjects(ObjectCollection objects) throws ProvisionFailedException
      Specified by:
      createFromObjects in class ObjectCollectionProviderUnary
      Throws:
      ProvisionFailedException
    • getMask

      public MaskProvider getMask()
    • setMask

      public void setMask(MaskProvider mask)