Class IntensityQuantiles


public class IntensityQuantiles extends StackDisplayer
Implementation of StackDisplayer that converts to unsigned-8bit by taking the upper and lower quantiles of the intensity range.

Within the two ranges, values are mapped linearly onto the full unsigned 8-bit range.

Author:
Owen Feehan
  • Constructor Details

    • IntensityQuantiles

      public IntensityQuantiles()
  • Method Details

    • checkMisconfigured

      public void checkMisconfigured(BeanInstanceMap defaultInstances) throws BeanMisconfiguredException
      Description copied from class: AnchorBean
      Checks that a bean's properties conform to expectations.
      Overrides:
      checkMisconfigured in class AnchorBean<StackDisplayer>
      Parameters:
      defaultInstances - all available default instances if the DefaultInstance annotation is used
      Throws:
      BeanMisconfiguredException - if the bean has not been configured properly as XML
    • createConverterFor

      protected ChannelConverterAttached<Channel,UnsignedByteBuffer> createConverterFor(VoxelDataType dataType)
      Description copied from class: StackDisplayer
      Determines what kind of converter to use for a particular channel, to map it to an unsigned 8-bit channel.
      Specified by:
      createConverterFor in class StackDisplayer
      Parameters:
      dataType - the voxel-data type that must be converted to unsigned 8-bit.
      Returns:
      a newly created ChannelConverterAttached that can convert from channels with voxel-type dataType to unsigned 8-bit.
    • getQuantileLower

      public double getQuantileLower()
      The lower quantile to use as the lower-limit for the intensity range to display.
    • setQuantileLower

      public void setQuantileLower(double quantileLower)
      The lower quantile to use as the lower-limit for the intensity range to display.
    • getQuantileUpper

      public double getQuantileUpper()
      The lower quantile to use as the upper-limit for the intensity range to display.
    • setQuantileUpper

      public void setQuantileUpper(double quantileUpper)
      The lower quantile to use as the upper-limit for the intensity range to display.