Package org.anchoranalysis.test.image
Class StackFixture
Object
StackFixture
Creates stacks of 1 or more channels using
ChannelFixture.- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionStackFixture(Optional<VoxelDataType> firstChannelVoxelType) Create with a voxel-type for the first channel. -
Method Summary
Modifier and TypeMethodDescriptioncreate(ChannelSpecification channelSpecification, Extent extent) Creates a stack with a particular number of the channels of particular size.
-
Constructor Details
-
StackFixture
Create with a voxel-type for the first channel.- Parameters:
firstChannelVoxelType- voxel-data type of the first channel, taking precedence over thechannelsVoxelTypeargument.
-
StackFixture
public StackFixture()
-
-
Method Details
-
create
Creates a stack with a particular number of the channels of particular size.Note that if defined,
firstChannelVoxelTypetakes precedence for the first channel's data type over that supplied byChannelSpecification.- Parameters:
channelSpecification- specification for the channels to be createdextent- the size of each channel- Returns:
- the newly created stack with newly-created channels
- Throws:
AnchorImpossibleSituationException- if anIncorrectImageSizeExceptionoccurs, which should never happen given the controlled creation of channels
-