public abstract class UnsignedByteFromUnsignedByte extends ToUnsignedByte
ToUnsignedByte
and provides common functionality when converting to an unsigned
byte.
As this is the same as the source type, optimizations can occur to copy the existing memory without further manipulation.
destinationSize, extent, sourceIncrement, sourceSize
Constructor and Description |
---|
UnsignedByteFromUnsignedByte() |
Modifier and Type | Method and Description |
---|---|
protected int |
bytesPerVoxel()
The number bytes to describe each source-voxel.
|
protected UnsignedByteBuffer |
convert(ByteBuffer source,
int channelIndexRelative,
OrientationChange orientationCorrection,
boolean littleEndian) |
protected boolean |
supportsMultipleChannelsPerSourceBuffer()
Whether the source buffer can encode more than one channel?
|
convertSliceOfSingleChannel, copyAllChannels, copyChangeOrientation, copyKeepOrientation, setupBefore
protected boolean supportsMultipleChannelsPerSourceBuffer()
ConvertTo
supportsMultipleChannelsPerSourceBuffer
in class ConvertTo<UnsignedByteBuffer>
protected int bytesPerVoxel()
ConvertTo
bytesPerVoxel
in class ConvertTo<UnsignedByteBuffer>
protected UnsignedByteBuffer convert(ByteBuffer source, int channelIndexRelative, OrientationChange orientationCorrection, boolean littleEndian) throws IOException
convert
in class ConvertTo<UnsignedByteBuffer>
IOException
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.