Class ToUnsignedByteNoScaling
Object
org.anchoranalysis.image.voxel.convert.VoxelsConverter<UnsignedByteBuffer>
org.anchoranalysis.image.voxel.convert.ToUnsignedByte
org.anchoranalysis.image.voxel.convert.ToUnsignedByteNoScaling
public final class ToUnsignedByteNoScaling extends ToUnsignedByte
Converts voxel buffers to an unsigned 8-bit buffer without scaling any values.
Values larger than 255 are clamping.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description ToUnsignedByteNoScaling() -
Method Summary
Modifier and Type Method Description protected voidconvertFloat(FloatBuffer in, UnsignedByteBuffer out)Copies a value from the current position in aFloatBufferto the current position in a buffer of typeT.protected voidconvertUnsignedInt(UnsignedIntBuffer in, UnsignedByteBuffer out)Copies a value from the current position in aUnsignedIntBufferto the current position in a buffer of typeT.protected voidconvertUnsignedShort(UnsignedShortBuffer in, UnsignedByteBuffer out)Copies a value from the current position in aUnsignedShortBufferto the current position in a buffer of typeT.Methods inherited from class org.anchoranalysis.image.voxel.convert.ToUnsignedByte
convertUnsignedByteMethods inherited from class org.anchoranalysis.image.voxel.convert.VoxelsConverter
convertFrom, copyFrom, copyFromFloat, copyFromUnsignedByte, copyFromUnsignedInt, copyFromUnsignedShort
-
Constructor Details
-
ToUnsignedByteNoScaling
public ToUnsignedByteNoScaling()
-
-
Method Details
-
convertUnsignedShort
Description copied from class:VoxelsConverterCopies a value from the current position in aUnsignedShortBufferto the current position in a buffer of typeT.- Specified by:
convertUnsignedShortin classVoxelsConverter<UnsignedByteBuffer>- Parameters:
in- the current position of this buffer gives the value to convert, and the position is incremented.out- the converted value is written to the current position of this buffer, and the position is incremented.
-
convertUnsignedInt
Description copied from class:VoxelsConverterCopies a value from the current position in aUnsignedIntBufferto the current position in a buffer of typeT.- Specified by:
convertUnsignedIntin classVoxelsConverter<UnsignedByteBuffer>- Parameters:
in- the current position of this buffer gives the value to convert, and the position is incremented.out- the converted value is written to the current position of this buffer, and the position is incremented.
-
convertFloat
Description copied from class:VoxelsConverterCopies a value from the current position in aFloatBufferto the current position in a buffer of typeT.- Specified by:
convertFloatin classVoxelsConverter<UnsignedByteBuffer>- Parameters:
in- the current position of this buffer gives the value to convert, and the position is incremented.out- the converted value is written to the current position of this buffer, and the position is incremented.
-