public abstract class ToUnsignedShort extends ConvertTo<UnsignedShortBuffer>
ConvertTo
that convert to unsigned short
buffers.destinationSize, extent, sourceIncrement, sourceSize
Modifier | Constructor and Description |
---|---|
protected |
ToUnsignedShort() |
Modifier and Type | Method and Description |
---|---|
protected int |
bytesPerVoxel()
The number bytes to describe each source-voxel.
|
protected abstract short |
convertValue(short value) |
protected void |
copyChangeOrientation(ByteBuffer source,
boolean littleEndian,
int channelIndexRelative,
UnsignedShortBuffer destination,
OrientationChange orientationCorrection)
Copy the bytes, changing orientation.
|
protected void |
copyKeepOrientation(ByteBuffer source,
boolean littleEndian,
int channelIndexRelative,
UnsignedShortBuffer destination)
Copy the bytes, without changing orientation.
|
protected boolean |
supportsMultipleChannelsPerSourceBuffer()
Whether the source buffer can encode more than one channel?
|
convert, convertSliceOfSingleChannel, copyAllChannels, setupBefore
protected boolean supportsMultipleChannelsPerSourceBuffer()
ConvertTo
supportsMultipleChannelsPerSourceBuffer
in class ConvertTo<UnsignedShortBuffer>
protected abstract short convertValue(short value)
protected void copyKeepOrientation(ByteBuffer source, boolean littleEndian, int channelIndexRelative, UnsignedShortBuffer 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<UnsignedShortBuffer>
protected void copyChangeOrientation(ByteBuffer source, boolean littleEndian, int channelIndexRelative, UnsignedShortBuffer destination, OrientationChange orientationCorrection)
ConvertTo
copyChangeOrientation
in class ConvertTo<UnsignedShortBuffer>
protected int bytesPerVoxel()
ConvertTo
bytesPerVoxel
in class ConvertTo<UnsignedShortBuffer>
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.