public class UnsignedByteFromUnsignedByteNoInterleaving extends UnsignedByteFromUnsignedByte
ByteBuffer
encoding unsigned bytes (no interleaving) to
unsigned byte type, as expected in an Anchor VoxelBuffer
.
This also supports RGB-encoded bytes, where multiple channels are encoded into each voxel, but without interleaving.
destinationSize, extent, sourceIncrement, sourceSize
Constructor and Description |
---|
UnsignedByteFromUnsignedByteNoInterleaving() |
Modifier and Type | Method and Description |
---|---|
protected void |
copyChangeOrientation(ByteBuffer source,
boolean littleEndian,
int channelIndexRelative,
UnsignedByteBuffer destination,
OrientationChange orientationCorrection)
Copy the bytes, changing orientation.
|
protected void |
copyKeepOrientation(ByteBuffer source,
boolean littleEndian,
int channelIndexRelative,
UnsignedByteBuffer destination)
Copy the bytes, without changing orientation.
|
bytesPerVoxel, convert, supportsMultipleChannelsPerSourceBuffer
convertSliceOfSingleChannel, copyAllChannels, setupBefore
public UnsignedByteFromUnsignedByteNoInterleaving()
protected void copyKeepOrientation(ByteBuffer source, boolean littleEndian, int channelIndexRelative, UnsignedByteBuffer destination)
ConvertTo
This is kept separate to ConvertTo.copyChangeOrientation(java.nio.ByteBuffer, boolean, int, T, org.anchoranalysis.image.core.dimensions.OrientationChange)
as it can be done slightly more
efficiently.
copyKeepOrientation
in class ConvertTo<UnsignedByteBuffer>
protected void copyChangeOrientation(ByteBuffer source, boolean littleEndian, int channelIndexRelative, UnsignedByteBuffer destination, OrientationChange orientationCorrection)
ConvertTo
copyChangeOrientation
in class ConvertTo<UnsignedByteBuffer>
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.