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()
|
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() |
NativeTypeFactory<Unsigned2BitType,LongAccess> |
getNativeTypeFactory() |
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, pow, pow, set, setBigInteger, setComplexNumber, setComplexNumber, setImaginary, setImaginary, setInteger, setInteger, setOne, setReal, setReal, setZero, sub, toString, valueEquals
getEntitiesPerPixel, index, updateContainer
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
decIndex, decIndex, getIndex, incIndex, incIndex, updateIndex
public Unsigned2BitType(NativeImg<?,? extends LongAccess> bitStorage)
public Unsigned2BitType(long value)
public Unsigned2BitType(LongAccess access)
public Unsigned2BitType()
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 NativeTypeFactory<Unsigned2BitType,LongAccess> getNativeTypeFactory()
getNativeTypeFactory
in interface NativeType<Unsigned2BitType>
getNativeTypeFactory
in class AbstractBitType<Unsigned2BitType>
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 © 2015–2022 ImgLib2. All rights reserved.