Class IntensityQuantiles
Object
org.anchoranalysis.bean.AnchorBean<StackDisplayer>
org.anchoranalysis.image.bean.displayer.StackDisplayer
org.anchoranalysis.image.bean.displayer.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 Summary
Constructors Constructor Description IntensityQuantiles() -
Method Summary
Modifier and Type Method Description voidcheckMisconfigured(BeanInstanceMap defaultInstances)protected ChannelConverterAttached<Channel,org.anchoranalysis.image.voxel.buffer.primitive.UnsignedByteBuffer>createConverterFor(org.anchoranalysis.image.voxel.datatype.VoxelDataType dataType)Determines what kind of converter to use for a particular channel, to map it to an unsigned 8-bit channel.doublegetQuantileLower()The lower quantile to use as the lower-limit for the intensity range to display.doublegetQuantileUpper()The lower quantile to use as the upper-limit for the intensity range to display.voidsetQuantileLower(double quantileLower)The lower quantile to use as the lower-limit for the intensity range to display.voidsetQuantileUpper(double quantileUpper)The lower quantile to use as the upper-limit for the intensity range to display.Methods inherited from class org.anchoranalysis.image.bean.displayer.StackDisplayer
deriveFrom, deriveFrom, deriveFromMethods inherited from class org.anchoranalysis.bean.AnchorBean
describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
IntensityQuantiles
public IntensityQuantiles()
-
-
Method Details
-
checkMisconfigured
- Overrides:
checkMisconfiguredin classAnchorBean<StackDisplayer>- Throws:
BeanMisconfiguredException
-
createConverterFor
protected ChannelConverterAttached<Channel,org.anchoranalysis.image.voxel.buffer.primitive.UnsignedByteBuffer> createConverterFor(org.anchoranalysis.image.voxel.datatype.VoxelDataType dataType)Description copied from class:StackDisplayerDetermines what kind of converter to use for a particular channel, to map it to an unsigned 8-bit channel.- Specified by:
createConverterForin classStackDisplayer- Parameters:
dataType- the voxel-data type that must be converted to unsigned 8-bit.- Returns:
- a newly created
ChannelConverterAttachedthat can convert from channels with voxel-typedataTypeto 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.
-