Class FromDimensionsBase
- All Implemented Interfaces:
Provider<Mask>,ProviderAsStack
- Direct Known Subclasses:
AllValuesOff,AllValuesOn,Box,FromObjects
Base class for
MaskProviders that create a mask based on given dimensions.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract MaskcreateFromDimensions(Dimensions dimensions) Creates aMaskfrom the givenDimensions.get()Gets or creates an object of typeT.Provider for the dimensions used to create the mask.voidsetDimensions(DimensionsProvider dimensions) Provider for the dimensions used to create the mask.Methods inherited from class org.anchoranalysis.image.bean.provider.MaskProvider
getAsStackMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitializationMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
FromDimensionsBase
public FromDimensionsBase()
-
-
Method Details
-
get
Description copied from interface:ProviderGets or creates an object of typeT.- Returns:
- the object returned by the provider.
- Throws:
ProvisionFailedException- if the object cannot be returned.
-
createFromDimensions
Creates aMaskfrom the givenDimensions.- Parameters:
dimensions- the dimensions to use for creating the mask- Returns:
- the created mask
- Throws:
ProvisionFailedException- if the mask creation fails
-
getDimensions
Provider for the dimensions used to create the mask. Defaults toGuessDimensions. -
setDimensions
Provider for the dimensions used to create the mask. Defaults toGuessDimensions.
-