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 TypeMethodDescriptionvoidAdds a stack to the existing list of stack-providers.get()Gets or creates an object of typeT.Determines how the stacks inlistare arranged.The interpolator to use for scaling images, if needed.getList()The stacks that are passed in respect order intoarrange.booleanIf true, the created raster has unsigned short voxel data type.booleanIff true, ensures every stack is converted into 3 channels.voidsetArrange(StackArranger arrange) Determines how the stacks inlistare arranged.voidsetCreateShort(boolean createShort) If true, the created raster has unsigned short voxel data type.voidsetForceRGB(boolean forceRGB) Iff true, ensures every stack is converted into 3 channels.voidsetInterpolator(Interpolator interpolator) The interpolator to use for scaling images, if needed.voidThe stacks that are passed in respect order intoarrange.Methods inherited from class org.anchoranalysis.image.bean.provider.stack.StackProvider
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
-
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:ProviderGets 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 inlistare arranged. -
setArrange
Determines how the stacks inlistare 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.
-