Class ToUnsignedShortNoScaling
Converts voxel buffers to an unsigned 16-bit buffer without scaling any values.
Values with intesity greater than 65535
are clamped to 65535
.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
convertFloat
(FloatBuffer in, UnsignedShortBuffer out) Copies a value from the current position in aFloatBuffer
to the current position in a buffer of typeT
.protected void
Copies a value from the current position in aUnsignedByteBuffer
to the current position in a buffer of typeT
.protected void
Copies a value from the current position in aUnsignedIntBuffer
to the current position in a buffer of typeT
.protected void
Copies a value from the current position in aUnsignedShortBuffer
to the current position in a buffer of typeT
.Methods inherited from class org.anchoranalysis.image.voxel.convert.VoxelsConverter
convertFrom, copyFrom, copyFromFloat, copyFromUnsignedByte, copyFromUnsignedInt, copyFromUnsignedShort
-
Constructor Details
-
ToUnsignedShortNoScaling
public ToUnsignedShortNoScaling()
-
-
Method Details
-
convertUnsignedByte
Description copied from class:VoxelsConverter
Copies a value from the current position in aUnsignedByteBuffer
to the current position in a buffer of typeT
.- Specified by:
convertUnsignedByte
in classVoxelsConverter<UnsignedShortBuffer>
- 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.
-
convertUnsignedShort
Description copied from class:VoxelsConverter
Copies a value from the current position in aUnsignedShortBuffer
to the current position in a buffer of typeT
.- Specified by:
convertUnsignedShort
in classVoxelsConverter<UnsignedShortBuffer>
- 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:VoxelsConverter
Copies a value from the current position in aUnsignedIntBuffer
to the current position in a buffer of typeT
.- Specified by:
convertUnsignedInt
in classVoxelsConverter<UnsignedShortBuffer>
- 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:VoxelsConverter
Copies a value from the current position in aFloatBuffer
to the current position in a buffer of typeT
.- Specified by:
convertFloat
in classVoxelsConverter<UnsignedShortBuffer>
- 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.
-