public class ConvertToNativeImg extends Object
Modifier and Type | Method and Description |
---|---|
static net.imglib2.img.NativeImg<net.imglib2.type.numeric.integer.UnsignedByteType,net.imglib2.img.basictypeaccess.array.ByteArray> |
fromByte(Voxels<UnsignedByteBuffer> voxels)
Creates an
NativeImg from Voxels with an unsigned byte data-type. |
static net.imglib2.img.NativeImg<net.imglib2.type.numeric.real.FloatType,net.imglib2.img.basictypeaccess.array.FloatArray> |
fromFloat(Voxels<FloatBuffer> voxels)
Creates an
NativeImg from Voxels with a float data-type. |
static net.imglib2.img.NativeImg<net.imglib2.type.numeric.integer.UnsignedShortType,net.imglib2.img.basictypeaccess.array.ShortArray> |
fromShort(Voxels<UnsignedShortBuffer> voxels)
Creates an
NativeImg from Voxels with an unsigned short data-type. |
public static net.imglib2.img.NativeImg<net.imglib2.type.numeric.integer.UnsignedByteType,net.imglib2.img.basictypeaccess.array.ByteArray> fromByte(Voxels<UnsignedByteBuffer> voxels)
NativeImg
from Voxels
with an unsigned byte data-type.voxels
- the voxels to use in the NativeImg
.NativeImg
, either reusing the memory in voxels
or
else a copy of it.public static net.imglib2.img.NativeImg<net.imglib2.type.numeric.integer.UnsignedShortType,net.imglib2.img.basictypeaccess.array.ShortArray> fromShort(Voxels<UnsignedShortBuffer> voxels)
NativeImg
from Voxels
with an unsigned short data-type.voxels
- the voxels to use in the NativeImg
.NativeImg
, either reusing the memory in voxels
or
else a copy of it.public static net.imglib2.img.NativeImg<net.imglib2.type.numeric.real.FloatType,net.imglib2.img.basictypeaccess.array.FloatArray> fromFloat(Voxels<FloatBuffer> voxels)
NativeImg
from Voxels
with a float data-type.voxels
- the voxels to use in the NativeImg
.NativeImg
, either reusing the memory in voxels
or
else a copy of it.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.