public class QuantileIntensityFromHistogram extends Object implements ChannelConverterAttached<Histogram,UnsignedByteBuffer>
Channel
to UnsignedByteBuffer
by scaling against a quantile of
the intensity values from a corresponding histogram.
Specifically, the range is from 0 to calculate_quantile(intensity, quantile)
across
all voxels.
Constructor and Description |
---|
QuantileIntensityFromHistogram(double quantile)
Scales against a particular quantile of the intensity values.
|
Modifier and Type | Method and Description |
---|---|
void |
attachObject(Histogram object)
Associate the convert with a particular object.
|
Channel |
convert(Channel channel,
ConversionPolicy changeExisting)
Converts the voxel-type in a
Channel . |
VoxelsConverter<UnsignedByteBuffer> |
getVoxelsConverter()
Converts voxels to have type voxel-type
T . |
public QuantileIntensityFromHistogram(double quantile)
quantile
- a value from 0 to 1 indicating which quantile to use, to scale against.public void attachObject(Histogram object) throws OperationFailedException
ChannelConverterAttached
attachObject
in interface ChannelConverterAttached<Histogram,UnsignedByteBuffer>
object
- the object to associate the converter with.OperationFailedException
- if the association cannot be completed successfully.public Channel convert(Channel channel, ConversionPolicy changeExisting)
ChannelConverterAttached
Channel
.convert
in interface ChannelConverterAttached<Histogram,UnsignedByteBuffer>
channel
- the channel whose voxels will be converted.changeExisting
- if ture, the are voxels in-place, preserving the existing Channel
object. Otherwise a new Channel
is created.Channel
or newly created one, as per above.public VoxelsConverter<UnsignedByteBuffer> getVoxelsConverter()
ChannelConverterAttached
T
.getVoxelsConverter
in interface ChannelConverterAttached<Histogram,UnsignedByteBuffer>
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.