Package net.imglib2.type.numeric.integer
Class Unsigned4BitType
java.lang.Object
net.imglib2.type.AbstractBitType<Unsigned4BitType>
net.imglib2.type.numeric.integer.AbstractIntegerBitType<Unsigned4BitType>
net.imglib2.type.numeric.integer.Unsigned4BitType
- All Implemented Interfaces:
Comparable<Unsigned4BitType>,NativeType<Unsigned4BitType>,ComplexType<Unsigned4BitType>,IntegerType<Unsigned4BitType>,NumericType<Unsigned4BitType>,RealType<Unsigned4BitType>,Add<Unsigned4BitType>,Div<Unsigned4BitType>,Mul<Unsigned4BitType>,MulFloatingPoint,SetOne,SetZero,Sub<Unsigned4BitType>,ValueEquals<Unsigned4BitType>,Type<Unsigned4BitType>
A
Type with a bit depth of 4.
The performance of this type is traded off for the gain in memory storage.- Author:
- Albert Cardona
-
Field Summary
Fields inherited from class net.imglib2.type.AbstractBitType
dataAccess, i, img, nBits -
Constructor Summary
ConstructorsConstructorDescriptionUnsigned4BitType(long value) Unsigned4BitType(LongAccess access) Unsigned4BitType(NativeImg<?, ? extends LongAccess> bitStorage) -
Method Summary
Modifier and TypeMethodDescriptioncopy()NativeImg<Unsigned4BitType, ? extends LongAccess> createSuitableNativeImg(NativeImgFactory<Unsigned4BitType> 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
-
Unsigned4BitType
-
Unsigned4BitType
public Unsigned4BitType(long value) -
Unsigned4BitType
-
Unsigned4BitType
public Unsigned4BitType()
-
-
Method Details
-
createSuitableNativeImg
public NativeImg<Unsigned4BitType,? extends LongAccess> createSuitableNativeImg(NativeImgFactory<Unsigned4BitType> 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<Unsigned4BitType>
-
set
public void set(long value) - Specified by:
setin classAbstractIntegerBitType<Unsigned4BitType>
-
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
-