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 TypeMethodDescriptionvoid
checkMisconfigured
(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.double
The lower quantile to use as the lower-limit for the intensity range to display.double
The lower quantile to use as the upper-limit for the intensity range to display.void
setQuantileLower
(double quantileLower) The lower quantile to use as the lower-limit for the intensity range to display.void
setQuantileUpper
(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, deriveFrom
Methods 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:AnchorBean
Checks that a bean's properties conform to expectations.- Overrides:
checkMisconfigured
in classAnchorBean<StackDisplayer>
- Parameters:
defaultInstances
- all available default instances if theDefaultInstance
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 classStackDisplayer
- 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-typedataType
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.
-