Class FromDimensionsBase
- All Implemented Interfaces:
Provider<Mask>
,ProviderAsStack
- Direct Known Subclasses:
AllValuesOff
,AllValuesOn
,Box
,FromObjects
Base class for
MaskProvider
s that create a mask based on given dimensions.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Mask
createFromDimensions
(Dimensions dimensions) Creates aMask
from the givenDimensions
.get()
Gets or creates an object of typeT
.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
-
Constructor Details
-
FromDimensionsBase
public FromDimensionsBase()
-
-
Method Details
-
get
Description copied from interface:Provider
Gets or creates an object of typeT
.- Returns:
- the object returned by the provider.
- Throws:
ProvisionFailedException
- if the object cannot be returned.
-
createFromDimensions
Creates aMask
from 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
.
-