Class Unsigned2BitType
java.lang.Object
net.imglib2.type.AbstractBitType<Unsigned2BitType>
net.imglib2.type.numeric.integer.AbstractIntegerBitType<Unsigned2BitType>
net.imglib2.type.numeric.integer.Unsigned2BitType
- All Implemented Interfaces:
Comparable<Unsigned2BitType>, NativeType<Unsigned2BitType>, ComplexType<Unsigned2BitType>, IntegerType<Unsigned2BitType>, NumericType<Unsigned2BitType>, RealType<Unsigned2BitType>, Add<Unsigned2BitType>, Div<Unsigned2BitType>, Mul<Unsigned2BitType>, MulFloatingPoint, Pow<Unsigned2BitType>, PowFloatingPoint, SetOne, SetZero, Sub<Unsigned2BitType>, ValueEquals<Unsigned2BitType>, Type<Unsigned2BitType>
A
Type with a bit depth of 2.
The performance of this type is traded off for the gain in memory storage.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longprivate static final NativeTypeFactory<Unsigned2BitType, LongAccess> Fields inherited from class AbstractBitType
dataAccess, i, img, nBits -
Constructor Summary
ConstructorsConstructorDescriptionUnsigned2BitType(long value) Unsigned2BitType(LongAccess access) Unsigned2BitType(NativeImg<?, ? extends LongAccess> bitStorage) -
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates a newTypevariable which can only store one value.Creates a newNativeTypewhich stores in the same physical array.longget()voidset(long value) Methods inherited from class AbstractIntegerBitType
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, valueEqualsMethods inherited from class AbstractBitType
getEntitiesPerPixel, index, updateContainerMethods inherited from interface NativeType
decIndex, decIndex, getIndex, incIndex, incIndex, updateIndex
-
Field Details
-
mask
private static final long mask- See Also:
-
typeFactory
-
-
Constructor Details
-
Unsigned2BitType
-
Unsigned2BitType
public Unsigned2BitType(long value) -
Unsigned2BitType
-
Unsigned2BitType
public Unsigned2BitType()
-
-
Method Details
-
duplicateTypeOnSameNativeImg
Description copied from interface:NativeTypeCreates a newNativeTypewhich stores in the same physical array. This is only used internally.- Returns:
- a new
NativeTypeinstance working on the sameNativeImg
-
getNativeTypeFactory
- Specified by:
getNativeTypeFactoryin interfaceNativeType<Unsigned2BitType>- Specified by:
getNativeTypeFactoryin classAbstractBitType<Unsigned2BitType>
-
get
public long get()- Specified by:
getin classAbstractIntegerBitType<Unsigned2BitType>
-
set
public void set(long value) - Specified by:
setin classAbstractIntegerBitType<Unsigned2BitType>
-
createVariable
-
copy
-