Package net.imglib2.type.numeric.integer
Class Unsigned12BitType
- java.lang.Object
-
- net.imglib2.type.AbstractBitType<T>
-
- net.imglib2.type.numeric.integer.AbstractIntegerBitType<Unsigned12BitType>
-
- net.imglib2.type.numeric.integer.Unsigned12BitType
-
- All Implemented Interfaces:
java.lang.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>
public class Unsigned12BitType extends AbstractIntegerBitType<Unsigned12BitType>
A 12-bitTypewhose data is stored in aLongAccess.
-
-
Field Summary
Fields Modifier and Type Field Description private longmaskprivate static NativeTypeFactory<Unsigned12BitType,LongAccess>typeFactory-
Fields inherited from class net.imglib2.type.AbstractBitType
dataAccess, i, img, nBits
-
-
Constructor Summary
Constructors Constructor Description Unsigned12BitType()Unsigned12BitType(long value)Unsigned12BitType(LongAccess access)Unsigned12BitType(NativeImg<?,? extends LongAccess> bitStorage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Unsigned12BitTypecopy()Unsigned12BitTypecreateVariable()Creates a newTypevariable which can only store one value.Unsigned12BitTypeduplicateTypeOnSameNativeImg()Creates a newNativeTypewhich stores in the same physical array.longget()NativeTypeFactory<Unsigned12BitType,LongAccess>getNativeTypeFactory()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, valueEquals
-
Methods inherited from class net.imglib2.type.AbstractBitType
getEntitiesPerPixel, index, updateContainer
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.imglib2.type.NativeType
decIndex, decIndex, getIndex, incIndex, incIndex, updateIndex
-
-
-
-
Field Detail
-
mask
private final long mask
-
typeFactory
private static final NativeTypeFactory<Unsigned12BitType,LongAccess> typeFactory
-
-
Constructor Detail
-
Unsigned12BitType
public Unsigned12BitType(NativeImg<?,? extends LongAccess> bitStorage)
-
Unsigned12BitType
public Unsigned12BitType(long value)
-
Unsigned12BitType
public Unsigned12BitType(LongAccess access)
-
Unsigned12BitType
public Unsigned12BitType()
-
-
Method Detail
-
duplicateTypeOnSameNativeImg
public Unsigned12BitType 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
public NativeTypeFactory<Unsigned12BitType,LongAccess> 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
public Unsigned12BitType createVariable()
Description copied from interface:TypeCreates a newTypevariable which can only store one value.- Returns:
- a new
Typevariable
-
copy
public Unsigned12BitType copy()
Description copied from interface:Type- Returns:
- a new
Typevariable
-
-