Class RepeatSlice
- All Implemented Interfaces:
Provider<Mask>
,ProviderAsStack
Creates a new mask with specific dimensions that repeatedly duplicates a slice from an existing
mask
The incoming mask
must have the same extent in XY as specified in dimension
.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFromMask
(Mask mask) Creates aMask
given the entity provided by the delegate.Dimensions to create new maskint
Which slice to use frommask
void
setDimensions
(DimensionsProvider dimensions) Dimensions to create new maskvoid
setSliceIndex
(int sliceIndex) Which slice to use frommask
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
-
RepeatSlice
public RepeatSlice()
-
-
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.
-
getDimensions
Dimensions to create new mask -
setDimensions
Dimensions to create new mask -
getSliceIndex
public int getSliceIndex()Which slice to use frommask
-
setSliceIndex
public void setSliceIndex(int sliceIndex) Which slice to use frommask
-