public class UpperLowerQuantileIntensity extends Object
Channel
to UnsignedByteBuffer
by scaling against lower and upper
quantiles of the intensity values that appear in it.
Specifically, the range is from calculate_quantile(intensity, quantileLower)
to calculate_quantile(intensity, quantileUpper)
across all voxels.
Constructor and Description |
---|
UpperLowerQuantileIntensity(double quantileLower,
double quantileUpper)
Scale with quantile values for the lower and upper boundaries.
|
Modifier and Type | Method and Description |
---|---|
void |
attachObject(Channel object)
Associate the convert with a particular object.
|
Channel |
convert(Channel channel,
ConversionPolicy changeExisting)
Converts the voxel-type in a
Channel . |
VoxelsConverter<T> |
getVoxelsConverter()
Converts voxels to have type voxel-type
T . |
public UpperLowerQuantileIntensity(double quantileLower, double quantileUpper)
quantileLower
- quantile that defines the lower boundary.quantileUpper
- quantile that defines the upper boundary.public void attachObject(Channel object) throws OperationFailedException
ChannelConverterAttached
attachObject
in interface ChannelConverterAttached<Channel,T>
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<Channel,T>
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<T> getVoxelsConverter()
ChannelConverterAttached
T
.getVoxelsConverter
in interface ChannelConverterAttached<Channel,T>
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.