Class FromDimensionsBase

Object
AnchorBean<MaskProvider>
InitializableBean<MaskProvider, ImageInitialization>
ImageBean<MaskProvider>
BeanProviderAsStackBase<MaskProvider, Mask>
MaskProvider
FromDimensionsBase
All Implemented Interfaces:
Provider<Mask>, ProviderAsStack
Direct Known Subclasses:
AllValuesOff, AllValuesOn, Box, FromObjects

public abstract class FromDimensionsBase extends MaskProvider
Base class for MaskProviders that create a mask based on given dimensions.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract Mask
    createFromDimensions(Dimensions dimensions)
    Creates a Mask from the given Dimensions.
    Mask
    get()
     
    DimensionsProvider
    Provider for the dimensions used to create the mask.
    void
    setDimensions(DimensionsProvider dimensions)
    Provider for the dimensions used to create the mask.

    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

    • FromDimensionsBase

      public FromDimensionsBase()
  • Method Details

    • get

      public Mask get() throws ProvisionFailedException
      Throws:
      ProvisionFailedException
    • createFromDimensions

      protected abstract Mask createFromDimensions(Dimensions dimensions) throws ProvisionFailedException
      Creates a Mask from the given Dimensions.
      Parameters:
      dimensions - the dimensions to use for creating the mask
      Returns:
      the created mask
      Throws:
      ProvisionFailedException - if the mask creation fails
    • getDimensions

      public DimensionsProvider getDimensions()
      Provider for the dimensions used to create the mask. Defaults to GuessDimensions.
    • setDimensions

      public void setDimensions(DimensionsProvider dimensions)
      Provider for the dimensions used to create the mask. Defaults to GuessDimensions.