public class FloatFromUnsignedInt extends ToFloat
destinationSize, extent, sourceIncrement, sourceSize
Constructor and Description |
---|
FloatFromUnsignedInt() |
Modifier and Type | Method and Description |
---|---|
protected int |
bytesPerVoxel()
The number bytes to describe each source-voxel.
|
protected void |
copyChangeOrientation(ByteBuffer source,
boolean littleEndian,
int channelIndexRelative,
FloatBuffer destination,
OrientationChange orientationCorrection)
Copy the bytes, changing orientation.
|
protected void |
copyKeepOrientation(ByteBuffer source,
boolean littleEndian,
int channelIndexRelative,
FloatBuffer destination)
Copy the bytes, without changing orientation.
|
supportsMultipleChannelsPerSourceBuffer
convert, convertSliceOfSingleChannel, copyAllChannels, setupBefore
protected int bytesPerVoxel()
ConvertTo
bytesPerVoxel
in class ConvertTo<FloatBuffer>
protected void copyKeepOrientation(ByteBuffer source, boolean littleEndian, int channelIndexRelative, FloatBuffer destination) throws IOException
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<FloatBuffer>
IOException
protected void copyChangeOrientation(ByteBuffer source, boolean littleEndian, int channelIndexRelative, FloatBuffer destination, OrientationChange orientationCorrection) throws IOException
ConvertTo
copyChangeOrientation
in class ConvertTo<FloatBuffer>
IOException
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.