Class FitBoxToOnVoxels
- All Implemented Interfaces:
Provider<Mask>
,ProviderAsStack
Fits a box around the on voxels.
The minimally-fitting (i.e. tightest) box that fits is always used.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFromMask
(Mask mask) Creates aMask
given the entity provided by the delegate.boolean
void
setSlicesSeparately
(boolean slicesSeparately) Methods inherited from class org.anchoranalysis.image.bean.provider.MaskProviderUnary
get, getMask, setMask
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
-
FitBoxToOnVoxels
public FitBoxToOnVoxels()
-
-
Method Details
-
createFromMask
Description copied from class:MaskProviderUnary
Creates aMask
given the entity provided by the delegate.- Specified by:
createFromMask
in classMaskProviderUnary
- Parameters:
mask
- the entity provided by the delegate.- Returns:
- the created
Mask
that is returned by the provider. - Throws:
ProvisionFailedException
- if the provider cannot complete successfully.
-
isSlicesSeparately
public boolean isSlicesSeparately() -
setSlicesSeparately
public void setSlicesSeparately(boolean slicesSeparately)
-