Class IntensityQuantiles
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckMisconfigured(BeanInstanceMap defaultInstances) Checks that a bean's properties conform to expectations.protected ChannelConverterAttached<Channel, UnsignedByteBuffer> createConverterFor(VoxelDataType dataType) Determines what kind of converter to use for a particular channel, to map it to an unsigned 8-bit channel.doubleThe lower quantile to use as the lower-limit for the intensity range to display.doubleThe 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
Description copied from class:AnchorBeanChecks that a bean's properties conform to expectations.- Overrides:
checkMisconfiguredin classAnchorBean<StackDisplayer>- Parameters:
defaultInstances- all available default instances if theDefaultInstanceannotation 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: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.
-