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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Stack
    createFromStack(Stack stack)
     
    int
    Adds a border around each part of the montage.
    int
    How many columns to use in the montage, or 0 to guess an approximately square output.
    double
    Whether to increase or reduce the size of the images.
    int
    First slice to include in the montage.
    int
    Last slice to include in the montage.
    boolean
    If true, a label is added beside every image showing the slice index.
    void
    setBorderWidth(int borderWidth)
    Adds a border around each part of the montage.
    void
    setColumns(int columns)
    How many columns to use in the montage, or 0 to guess an approximately square output.
    void
    setLabel(boolean label)
    If true, a label is added beside every image showing the slice index.
    void
    setScale(double scale)
    Whether to increase or reduce the size of the images.
    void
    setSliceFirst(int sliceFirst)
    First slice to include in the montage.
    void
    setSliceLast(int sliceLast)
    Last slice to include in the montage.

    Methods inherited from class org.anchoranalysis.image.bean.provider.stack.StackProviderUnary

    get, getStack, setStack

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • MontageSlices

      public MontageSlices()
  • Method Details

    • createFromStack

      public Stack createFromStack(Stack stack) throws ProvisionFailedException
      Specified by:
      createFromStack in class StackProviderUnary
      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.