Class FromObjects
- All Implemented Interfaces:
Provider<Mask>,ProviderAsStack
Creates a
Mask from a collection of object-masks.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MaskcreateFromDimensions(Dimensions dimensions) Creates aMaskfrom the givenDimensions.booleanisInvert()voidsetInvert(boolean invert) voidsetObjects(ObjectCollectionProvider objects) Methods inherited from class org.anchoranalysis.plugin.image.bean.mask.provider.FromDimensionsBase
get, getDimensions, setDimensionsMethods 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
-
FromObjects
public FromObjects()
-
-
Method Details
-
createFromDimensions
Description copied from class:FromDimensionsBaseCreates aMaskfrom the givenDimensions.- Specified by:
createFromDimensionsin classFromDimensionsBase- Parameters:
dimensions- the dimensions to use for creating the mask- Returns:
- the created mask
- Throws:
ProvisionFailedException- if the mask creation fails
-
getObjects
-
setObjects
-
isInvert
public boolean isInvert() -
setInvert
public void setInvert(boolean invert)
-