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 Details

  • Method Details

    • checkChannelType

      public void checkChannelType​(Channel channel) throws OperationFailedException
      Checks that a channel has the same type (max value) as the others.
      Parameters:
      channel - the Channel to check.
      Throws:
      OperationFailedException - if voxelDataType is 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.