Class StackFixture

Object
org.anchoranalysis.test.image.StackFixture

public class StackFixture
extends Object
Creates stacks of 1 or more channels using ChannelFixture.
Author:
Owen Feehan
  • Constructor Details

    • StackFixture

      public StackFixture​(Optional<org.anchoranalysis.image.voxel.datatype.VoxelDataType> firstChannelVoxelType)
      Create with a voxel-type for the first channel.
      Parameters:
      firstChannelVoxelType - voxel-data type of the first channel, taking precedence over the channelsVoxelType argument.
    • StackFixture

      public StackFixture()
  • Method Details

    • create

      public Stack create​(ChannelSpecification channelSpecification, Extent extent)
      Creates a stack with a particular number of the channels of particular size.

      Note that if defined, firstChannelVoxelType takes precedence for the first channel's data type over that supplied by ChannelSpecification.

      Parameters:
      channelSpecification - specification for the channels to be created
      extent - the size of each channel
      Returns:
      the newly created stack with newly-created channels
      Throws:
      AnchorImpossibleSituationException - if an IncorrectImageSizeException occurs, which should never happen given the controlled creation of channels