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 Mask
createFromDimensions
(Dimensions dimensions) Creates aMask
from the givenDimensions
.boolean
isInvert()
void
setInvert
(boolean invert) void
setObjects
(ObjectCollectionProvider objects) Methods inherited from class org.anchoranalysis.plugin.image.bean.mask.provider.FromDimensionsBase
get, getDimensions, setDimensions
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
-
FromObjects
public FromObjects()
-
-
Method Details
-
createFromDimensions
Description copied from class:FromDimensionsBase
Creates aMask
from the givenDimensions
.- Specified by:
createFromDimensions
in 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)
-