public class Unsigned4BitType extends AbstractIntegerBitType<Unsigned4BitType>
Type with a bit depth of 4.
The performance of this type is traded off for the gain in memory storage.dataAccess, i, img, nBits| Constructor and Description |
|---|
Unsigned4BitType() |
Unsigned4BitType(long value) |
Unsigned4BitType(LongAccess access) |
Unsigned4BitType(NativeImg<?,? extends LongAccess> bitStorage) |
| Modifier and Type | Method and Description |
|---|---|
Unsigned4BitType |
copy()
|
NativeImg<Unsigned4BitType,? extends LongAccess> |
createSuitableNativeImg(NativeImgFactory<Unsigned4BitType> storageFactory,
long[] dim)
The
NativeType creates the NativeImg used for storing
image data; based on the given storage strategy and its size. |
Unsigned4BitType |
createVariable()
Creates a new
Type variable which can only store one value. |
Unsigned4BitType |
duplicateTypeOnSameNativeImg()
Creates a new
NativeType which stores in the same physical array. |
long |
get() |
void |
set(long value) |
add, compareTo, complexConjugate, dec, div, equals, getBigInteger, getBitsPerPixel, getImaginaryDouble, getImaginaryFloat, getInteger, getIntegerLong, getMaxValue, getMinIncrement, getMinValue, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, getRealDouble, getRealFloat, hashCode, inc, mul, mul, mul, set, setBigInteger, setComplexNumber, setComplexNumber, setImaginary, setImaginary, setInteger, setInteger, setOne, setReal, setReal, setZero, sub, toString, valueEqualsdecIndex, decIndex, getEntitiesPerPixel, getIndex, incIndex, incIndex, updateContainer, updateIndexpublic Unsigned4BitType(NativeImg<?,? extends LongAccess> bitStorage)
public Unsigned4BitType(long value)
public Unsigned4BitType(LongAccess access)
public Unsigned4BitType()
public NativeImg<Unsigned4BitType,? extends LongAccess> createSuitableNativeImg(NativeImgFactory<Unsigned4BitType> storageFactory, long[] dim)
NativeTypeNativeType creates the NativeImg used for storing
image data; based on the given storage strategy and its size. It
basically only decides here which BasicType it uses (float, int, byte,
bit, ...) and how many entities per pixel it needs (e.g. 2 floats per
pixel for a complex number). This enables the separation of containers
and the basic types.public Unsigned4BitType duplicateTypeOnSameNativeImg()
NativeTypeNativeType which stores in the same physical array.
This is only used internally.NativeType instance working on the same
NativeImgpublic long get()
get in class AbstractIntegerBitType<Unsigned4BitType>public void set(long value)
set in class AbstractIntegerBitType<Unsigned4BitType>public Unsigned4BitType createVariable()
TypeType variable which can only store one value.Type variablepublic Unsigned4BitType copy()
TypeType variableCopyright © 2009–2017 ImgLib2. All rights reserved.