Class Arrange
- All Implemented Interfaces:
Provider<Stack>
,ProviderAsStack
Creates a stack that combines other stacks.
The stacks to be combined are specified in list
.
Instructions on how to combine the stacks are specified in arrange
, relative to the
order of the elements of list
.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a stack to the existing list of stack-providers.get()
Gets or creates an object of typeT
.Determines how the stacks inlist
are arranged.The interpolator to use for scaling images, if needed.getList()
The stacks that are passed in respect order intoarrange
.boolean
If true, the created raster has unsigned short voxel data type.boolean
Iff true, ensures every stack is converted into 3 channels.void
setArrange
(StackArranger arrange) Determines how the stacks inlist
are arranged.void
setCreateShort
(boolean createShort) If true, the created raster has unsigned short voxel data type.void
setForceRGB
(boolean forceRGB) Iff true, ensures every stack is converted into 3 channels.void
setInterpolator
(Interpolator interpolator) The interpolator to use for scaling images, if needed.void
The stacks that are passed in respect order intoarrange
.Methods inherited from class org.anchoranalysis.image.bean.provider.stack.StackProvider
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
-
Arrange
public Arrange(boolean createShort, boolean forceRGB) Shortcut to create with some explicit parameters.- Parameters:
createShort
- if true, the created raster has unsigned short voxel data type. If false, then unsigned byte.forceRGB
- iff true, ensures every stack is converted into 3 channels.
-
Arrange
public Arrange()
-
-
Method Details
-
addStack
Adds a stack to the existing list of stack-providers.- Parameters:
provider
- the provider of the stack to add.
-
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.
-
getList
The stacks that are passed in respect order intoarrange
. -
setList
The stacks that are passed in respect order intoarrange
. -
getArrange
Determines how the stacks inlist
are arranged. -
setArrange
Determines how the stacks inlist
are arranged. -
isForceRGB
public boolean isForceRGB()Iff true, ensures every stack is converted into 3 channels. -
setForceRGB
public void setForceRGB(boolean forceRGB) Iff true, ensures every stack is converted into 3 channels. -
isCreateShort
public boolean isCreateShort()If true, the created raster has unsigned short voxel data type. If false, then unsigned byte. -
setCreateShort
public void setCreateShort(boolean createShort) If true, the created raster has unsigned short voxel data type. If false, then unsigned byte. -
getInterpolator
The interpolator to use for scaling images, if needed. -
setInterpolator
The interpolator to use for scaling images, if needed.
-