public class FourChannelStackTester extends Object
RasterWriter
on stacks with between 1 and 4 channels.
Both 2D and 3D stacks may be created and tested, depending on parameterization.
Constructor and Description |
---|
FourChannelStackTester(StackTester tester,
ImageComparer comparer,
boolean skipComparisonForRGB)
Creates for a tester and comparer.
|
Modifier and Type | Method and Description |
---|---|
void |
testFourChannels()
Tests a stack with four-channels of unsigned 8-bit data type.
|
void |
testFourChannels(VoxelDataType[] channelVoxelTypes)
Tests a stack with four-channels of specified types
|
void |
testSingleChannel()
Tests the creation of a single-channel stack of unsigned 8-bit data type with the RGB flag
off.
|
void |
testSingleChannel(VoxelDataType channelVoxelType)
Tests the creation of a single-channel stack of specified data type with the RGB flag off.
|
void |
testSingleChannel(VoxelDataType[] channelVoxelTypes)
Tests the creation of a single-channel stack of specified data types with the RGB flag off.
|
void |
testSingleChannelRGB()
Tests the creation of a single-channel stack of unsigned 8-bit data type with the RGB flag
on, which should typically produce an exception.
|
void |
testThreeChannelsHeterogeneous()
Tests the creation of a three-channel stack of heterogeneous channel types.
|
void |
testThreeChannelsRGB()
Tests the creation of a three-channel stack of unsigned 8-bit data type with the rgb-flag set
to true.
|
void |
testThreeChannelsRGB(VoxelDataType channelVoxelType)
Tests the creation of a three-channel stack of specified data type with the rgb-flag set to
true.
|
void |
testThreeChannelsRGB(VoxelDataType[] channelVoxelTypes)
Tests the creation of a three-channel stack of specified data types with the rgb-flag set to
true.
|
void |
testThreeChannelsSeparate()
Tests the creation of a three-channel stack of unsigned 8-bit data type with the rgb-flag set
to false.
|
void |
testThreeChannelsSeparate(VoxelDataType[] channelVoxelTypes)
Tests the creation of a three-channel stack of specified data types with the rgb-flag set to
false.
|
void |
testTwoChannels()
Tests the creation of a two-channel stack of unsigned 8-bit data type.
|
void |
testTwoChannels(VoxelDataType[] channelVoxelTypes)
Tests the creation of a two-channel stack of specified data types.
|
public FourChannelStackTester(StackTester tester, ImageComparer comparer, boolean skipComparisonForRGB)
tester
- creates a stack to fulfill certain requirements, and performs the test with it.comparer
- a comparer used on the image-created when tested to check if it is identical
to other(s).skipComparisonForRGB
- Iff true, comparisons are not applied to RGB images.public void testSingleChannel() throws ImageIOException, IOException
ImageIOException
- if an error occurs by the writerIOException
- if an error occurs attempting a comparisonpublic void testSingleChannel(VoxelDataType channelVoxelType) throws ImageIOException, IOException
channelVoxelType
- channel voxel-type to use for the test.ImageIOException
- if an error occurs by the writerIOException
- if an error occurs attempting a comparisonpublic void testSingleChannel(VoxelDataType[] channelVoxelTypes) throws ImageIOException, IOException
channelVoxelTypes
- creates tests for each VoxelDataType
in the array.ImageIOException
- if an error occurs by the writerIOException
- if an error occurs attempting a comparisonpublic void testSingleChannelRGB() throws ImageIOException, IOException
ImageIOException
- if an error occurs by the writerIOException
- if an error occurs attempting a comparisonpublic void testTwoChannels() throws ImageIOException, IOException
ImageIOException
- if an error occurs by the writerIOException
- if an error occurs attempting a comparisonpublic void testTwoChannels(VoxelDataType[] channelVoxelTypes) throws ImageIOException, IOException
channelVoxelTypes
- creates tests for each VoxelDataType
in the array.ImageIOException
- if an error occurs by the writerIOException
- if an error occurs attempting a comparisonpublic void testThreeChannelsSeparate() throws ImageIOException, IOException
ImageIOException
- if an error occurs by the writerIOException
- if an error occurs attempting a comparisonpublic void testThreeChannelsSeparate(VoxelDataType[] channelVoxelTypes) throws ImageIOException, IOException
channelVoxelTypes
- creates tests for each VoxelDataType
in the array.ImageIOException
- if an error occurs by the writerIOException
- if an error occurs attempting a comparisonpublic void testThreeChannelsRGB() throws ImageIOException, IOException
ImageIOException
- if an error occurs by the writerIOException
- if an error occurs attempting a comparisonpublic void testThreeChannelsRGB(VoxelDataType channelVoxelType) throws ImageIOException, IOException
channelVoxelType
- channel voxel-type to use for the test.ImageIOException
- if an error occurs by the writerIOException
- if an error occurs attempting a comparisonpublic void testThreeChannelsRGB(VoxelDataType[] channelVoxelTypes) throws ImageIOException, IOException
channelVoxelTypes
- creates tests for each VoxelDataType
in the array.ImageIOException
- if an error occurs by the writerIOException
- if an error occurs attempting a comparisonpublic void testThreeChannelsHeterogeneous() throws ImageIOException, IOException
The first channel type is UnsignedShortVoxelType
the remaining two are UnsignedByteVoxelType
.
ImageIOException
- if an error occurs by the writerIOException
- if an error occurs attempting a comparisonpublic void testFourChannels() throws ImageIOException, IOException
ImageIOException
- if an error occurs by the writerIOException
- if an error occurs attempting a comparisonpublic void testFourChannels(VoxelDataType[] channelVoxelTypes) throws ImageIOException, IOException
channelVoxelTypes
- creates tests for each VoxelDataType
in the array.ImageIOException
- if an error occurs by the writerIOException
- if an error occurs attempting a comparisonCopyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.