public class Unsigned2BitType extends AbstractIntegerBitType<Unsigned2BitType>
Type
with a bit depth of 2.
The performance of this type is traded off for the gain in memory storage.dataAccess, i, img, nBits
Constructor and Description |
---|
Unsigned2BitType() |
Unsigned2BitType(long value) |
Unsigned2BitType(LongAccess access) |
Unsigned2BitType(NativeImg<?,? extends LongAccess> bitStorage) |
Modifier and Type | Method and Description |
---|---|
Unsigned2BitType |
copy()
|
NativeImg<Unsigned2BitType,? extends LongAccess> |
createSuitableNativeImg(NativeImgFactory<Unsigned2BitType> storageFactory,
long[] dim)
The
NativeType creates the NativeImg used for storing
image data; based on the given storage strategy and its size. |
Unsigned2BitType |
createVariable()
Creates a new
Type variable which can only store one value. |
Unsigned2BitType |
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, valueEquals
decIndex, decIndex, getEntitiesPerPixel, getIndex, incIndex, incIndex, updateContainer, updateIndex
public Unsigned2BitType(NativeImg<?,? extends LongAccess> bitStorage)
public Unsigned2BitType(long value)
public Unsigned2BitType(LongAccess access)
public Unsigned2BitType()
public NativeImg<Unsigned2BitType,? extends LongAccess> createSuitableNativeImg(NativeImgFactory<Unsigned2BitType> storageFactory, long[] dim)
NativeType
NativeType
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 Unsigned2BitType duplicateTypeOnSameNativeImg()
NativeType
NativeType
which stores in the same physical array.
This is only used internally.NativeType
instance working on the same
NativeImg
public long get()
get
in class AbstractIntegerBitType<Unsigned2BitType>
public void set(long value)
set
in class AbstractIntegerBitType<Unsigned2BitType>
public Unsigned2BitType createVariable()
Type
Type
variable which can only store one value.Type
variablepublic Unsigned2BitType copy()
Type
Type
variableCopyright © 2009–2018 ImgLib2. All rights reserved.