Class MontageSlices
Object
AnchorBean<StackProvider>
InitializableBean<StackProvider, ImageInitialization>
ImageBean<StackProvider>
BeanProviderAsStackBase<StackProvider, Stack>
StackProvider
StackProviderUnary
MontageSlices
- All Implemented Interfaces:
Provider<Stack>,ProviderAsStack
public class MontageSlices
extends StackProviderUnary
Creates a montage of slices from a stack.
This class extends StackProviderUnary to create a montage of slices from an input
stack.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionStackcreateFromStack(Stack stack) intAdds a border around each part of the montage.intHow many columns to use in the montage, or 0 to guess an approximately square output.doublegetScale()Whether to increase or reduce the size of the images.intFirst slice to include in the montage.intLast slice to include in the montage.booleanisLabel()If true, a label is added beside every image showing the slice index.voidsetBorderWidth(int borderWidth) Adds a border around each part of the montage.voidsetColumns(int columns) How many columns to use in the montage, or 0 to guess an approximately square output.voidsetLabel(boolean label) If true, a label is added beside every image showing the slice index.voidsetScale(double scale) Whether to increase or reduce the size of the images.voidsetSliceFirst(int sliceFirst) First slice to include in the montage.voidsetSliceLast(int sliceLast) Last slice to include in the montage.Methods inherited from class org.anchoranalysis.image.bean.provider.stack.StackProviderUnary
get, getStack, setStackMethods 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
-
MontageSlices
public MontageSlices()
-
-
Method Details
-
createFromStack
public Stack createFromStack(Stack stack) throws ProvisionFailedException - Specified by:
createFromStackin classStackProviderUnary- Throws:
ProvisionFailedException
-
getColumns
public int getColumns()How many columns to use in the montage, or 0 to guess an approximately square output.The number of rows is automatically calculated.
-
setColumns
public void setColumns(int columns) How many columns to use in the montage, or 0 to guess an approximately square output.The number of rows is automatically calculated.
-
getScale
public double getScale()Whether to increase or reduce the size of the images. A value of 1 maintains the original size. -
setScale
public void setScale(double scale) Whether to increase or reduce the size of the images. A value of 1 maintains the original size. -
getSliceFirst
public int getSliceFirst()First slice to include in the montage. If negative, set to the first slice. -
setSliceFirst
public void setSliceFirst(int sliceFirst) First slice to include in the montage. If negative, set to the first slice. -
getSliceLast
public int getSliceLast()Last slice to include in the montage. If negative, set to the last slice. -
setSliceLast
public void setSliceLast(int sliceLast) Last slice to include in the montage. If negative, set to the last slice. -
getBorderWidth
public int getBorderWidth()Adds a border around each part of the montage. -
setBorderWidth
public void setBorderWidth(int borderWidth) Adds a border around each part of the montage. -
isLabel
public boolean isLabel()If true, a label is added beside every image showing the slice index. -
setLabel
public void setLabel(boolean label) If true, a label is added beside every image showing the slice index.
-