Class Arrange
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<T,ImageInitialization>
org.anchoranalysis.image.bean.ImageBean<T>
org.anchoranalysis.image.bean.provider.BeanProviderAsStackBase<StackProvider,Stack>
org.anchoranalysis.image.bean.provider.stack.StackProvider
org.anchoranalysis.image.bean.provider.stack.Arrange
- All Implemented Interfaces:
Provider<Stack>,ProviderAsStack
public class Arrange extends StackProvider
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
-
Method Summary
Modifier and Type Method Description voidaddStack(Provider<Stack> provider)Adds a stack to the existing list of stack-providers.Stackget()StackArrangergetArrange()Determines how the stacks inlistare arranged.InterpolatorgetInterpolator()The interpolator to use for scaling images, if needed.List<Provider<Stack>>getList()The stacks that are passed in respect order intoarrange.booleanisCreateShort()If true, the created raster has unsigned short voxel data type.booleanisForceRGB()Iff 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.voidsetList(List<Provider<Stack>> list)The stacks that are passed in respect order intoarrange.Methods 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
- Throws:
ProvisionFailedException
-
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.
-