public class MaxIntensity extends Object implements ChannelConverterAttached<Channel,UnsignedByteBuffer>
Channel
to UnsignedByteBuffer
by scaling against the maximum
intensity value that appears in it.
Specifically, the range is from 0 to max(intensity)
across all voxels.
Constructor and Description |
---|
MaxIntensity()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
attachObject(Channel channel)
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 void attachObject(Channel channel)
ChannelConverterAttached
attachObject
in interface ChannelConverterAttached<Channel,UnsignedByteBuffer>
channel
- the object to associate the converter with.public Channel convert(Channel channel, ConversionPolicy changeExisting)
ChannelConverterAttached
Channel
.convert
in interface ChannelConverterAttached<Channel,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<Channel,UnsignedByteBuffer>
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.