Package net.imglib2.type.numeric.integer
Class Unsigned12BitType
java.lang.Object
net.imglib2.type.AbstractBitType<Unsigned12BitType>
net.imglib2.type.numeric.integer.AbstractIntegerBitType<Unsigned12BitType>
net.imglib2.type.numeric.integer.Unsigned12BitType
- All Implemented Interfaces:
Comparable<Unsigned12BitType>,NativeType<Unsigned12BitType>,ComplexType<Unsigned12BitType>,IntegerType<Unsigned12BitType>,NumericType<Unsigned12BitType>,RealType<Unsigned12BitType>,Add<Unsigned12BitType>,Div<Unsigned12BitType>,Mul<Unsigned12BitType>,MulFloatingPoint,Pow<Unsigned12BitType>,PowFloatingPoint,SetOne,SetZero,Sub<Unsigned12BitType>,ValueEquals<Unsigned12BitType>,Type<Unsigned12BitType>
A 12-bit
Type whose data is stored in a LongAccess.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longprivate static final NativeTypeFactory<Unsigned12BitType, LongAccess> Fields inherited from class net.imglib2.type.AbstractBitType
dataAccess, i, img, nBits -
Constructor Summary
ConstructorsConstructorDescriptionUnsigned12BitType(long value) Unsigned12BitType(LongAccess access) Unsigned12BitType(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 net.imglib2.type.numeric.integer.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 net.imglib2.type.AbstractBitType
getEntitiesPerPixel, index, updateContainerMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.imglib2.type.NativeType
decIndex, decIndex, getIndex, incIndex, incIndex, updateIndex
-
Field Details
-
mask
private final long mask -
typeFactory
-
-
Constructor Details
-
Unsigned12BitType
-
Unsigned12BitType
public Unsigned12BitType(long value) -
Unsigned12BitType
-
Unsigned12BitType
public Unsigned12BitType()
-
-
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<Unsigned12BitType>- Specified by:
getNativeTypeFactoryin classAbstractBitType<Unsigned12BitType>
-
get
public long get()- Specified by:
getin classAbstractIntegerBitType<Unsigned12BitType>
-
set
public void set(long value) - Specified by:
setin classAbstractIntegerBitType<Unsigned12BitType>
-
createVariable
Description copied from interface:TypeCreates a newTypevariable which can only store one value.- Returns:
- a new
Typevariable
-
copy
Description copied from interface:Type- Returns:
- a new
Typevariable
-