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,SetOne,SetZero,Sub<Unsigned12BitType>,ValueEquals<Unsigned12BitType>,Type<Unsigned12BitType>
A 12-bit
Type whose data is stored in a LongAccess.- Author:
- Albert Cardona, Stephan Preibisch
-
Field Summary
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()NativeImg<Unsigned12BitType, ? extends LongAccess> createSuitableNativeImg(NativeImgFactory<Unsigned12BitType> storageFactory, long[] dim) TheNativeTypecreates theNativeImgused for storing image data; based on the given storage strategy and its size.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, set, setBigInteger, setComplexNumber, setComplexNumber, setImaginary, setImaginary, setInteger, setInteger, setOne, setReal, setReal, setZero, sub, toString, valueEqualsMethods inherited from class net.imglib2.type.AbstractBitType
decIndex, decIndex, getEntitiesPerPixel, getIndex, incIndex, incIndex, updateContainer, updateIndex
-
Constructor Details
-
Unsigned12BitType
-
Unsigned12BitType
public Unsigned12BitType(long value) -
Unsigned12BitType
-
Unsigned12BitType
public Unsigned12BitType()
-
-
Method Details
-
createSuitableNativeImg
public NativeImg<Unsigned12BitType,? extends LongAccess> createSuitableNativeImg(NativeImgFactory<Unsigned12BitType> storageFactory, long[] dim) Description copied from interface:NativeTypeTheNativeTypecreates theNativeImgused 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. -
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
-
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
-