Package net.imglib2.type.numeric.integer
Class Unsigned4BitType
- java.lang.Object
-
- net.imglib2.type.AbstractBitType<T>
-
- net.imglib2.type.numeric.integer.AbstractIntegerBitType<Unsigned4BitType>
-
- net.imglib2.type.numeric.integer.Unsigned4BitType
-
- All Implemented Interfaces:
java.lang.Comparable<Unsigned4BitType>,NativeType<Unsigned4BitType>,ComplexType<Unsigned4BitType>,IntegerType<Unsigned4BitType>,NumericType<Unsigned4BitType>,RealType<Unsigned4BitType>,Add<Unsigned4BitType>,Div<Unsigned4BitType>,Mul<Unsigned4BitType>,MulFloatingPoint,Pow<Unsigned4BitType>,PowFloatingPoint,SetOne,SetZero,Sub<Unsigned4BitType>,ValueEquals<Unsigned4BitType>,Type<Unsigned4BitType>
public class Unsigned4BitType extends AbstractIntegerBitType<Unsigned4BitType>
ATypewith a bit depth of 4. The performance of this type is traded off for the gain in memory storage.
-
-
Field Summary
Fields Modifier and Type Field Description private static longmaskprivate static NativeTypeFactory<Unsigned4BitType,LongAccess>typeFactory-
Fields inherited from class net.imglib2.type.AbstractBitType
dataAccess, i, img, nBits
-
-
Constructor Summary
Constructors Constructor Description Unsigned4BitType()Unsigned4BitType(long value)Unsigned4BitType(LongAccess access)Unsigned4BitType(NativeImg<?,? extends LongAccess> bitStorage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Unsigned4BitTypecopy()Unsigned4BitTypecreateVariable()Creates a newTypevariable which can only store one value.Unsigned4BitTypeduplicateTypeOnSameNativeImg()Creates a newNativeTypewhich stores in the same physical array.longget()NativeTypeFactory<Unsigned4BitType,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 static final long mask
- See Also:
- Constant Field Values
-
typeFactory
private static final NativeTypeFactory<Unsigned4BitType,LongAccess> typeFactory
-
-
Constructor Detail
-
Unsigned4BitType
public Unsigned4BitType(NativeImg<?,? extends LongAccess> bitStorage)
-
Unsigned4BitType
public Unsigned4BitType(long value)
-
Unsigned4BitType
public Unsigned4BitType(LongAccess access)
-
Unsigned4BitType
public Unsigned4BitType()
-
-
Method Detail
-
duplicateTypeOnSameNativeImg
public Unsigned4BitType 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<Unsigned4BitType,LongAccess> getNativeTypeFactory()
- Specified by:
getNativeTypeFactoryin interfaceNativeType<Unsigned4BitType>- Specified by:
getNativeTypeFactoryin classAbstractBitType<Unsigned4BitType>
-
get
public long get()
- Specified by:
getin classAbstractIntegerBitType<Unsigned4BitType>
-
set
public void set(long value)
- Specified by:
setin classAbstractIntegerBitType<Unsigned4BitType>
-
createVariable
public Unsigned4BitType createVariable()
Description copied from interface:TypeCreates a newTypevariable which can only store one value.- Returns:
- a new
Typevariable
-
copy
public Unsigned4BitType copy()
Description copied from interface:Type- Returns:
- a new
Typevariable
-
-