Class ConsistentChannelChecker
Object
org.anchoranalysis.image.bean.nonbean.ConsistentChannelChecker
public class ConsistentChannelChecker extends Object
Checks that all
Channels have the same voxel-data-type.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description ConsistentChannelChecker() -
Method Summary
Modifier and Type Method Description voidcheckChannelType(Channel channel)Checks that a channel has the same type (max value) as the others.org.anchoranalysis.image.voxel.datatype.VoxelDataTypegetVoxelDataType()The voxel-data-type that is consistent across all channels.
-
Constructor Details
-
ConsistentChannelChecker
public ConsistentChannelChecker()
-
-
Method Details
-
checkChannelType
Checks that a channel has the same type (max value) as the others.- Parameters:
channel- theChannelto check.- Throws:
OperationFailedException- ifvoxelDataTypeis inconsistent with any existing type, if one exists.
-
getVoxelDataType
public org.anchoranalysis.image.voxel.datatype.VoxelDataType getVoxelDataType()The voxel-data-type that is consistent across all channels.- Returns:
- the voxel-data-type.
-