Package net.imglib2.type.numeric.integer
Class UnsignedIntType
java.lang.Object
net.imglib2.type.numeric.complex.AbstractComplexType<UnsignedIntType>
net.imglib2.type.numeric.real.AbstractRealType<UnsignedIntType>
net.imglib2.type.numeric.integer.AbstractIntegerType<UnsignedIntType>
net.imglib2.type.numeric.integer.GenericIntType<UnsignedIntType>
net.imglib2.type.numeric.integer.UnsignedIntType
- All Implemented Interfaces:
Comparable<UnsignedIntType>,NativeType<UnsignedIntType>,ComplexType<UnsignedIntType>,IntegerType<UnsignedIntType>,NumericType<UnsignedIntType>,RealType<UnsignedIntType>,Add<UnsignedIntType>,Div<UnsignedIntType>,Mul<UnsignedIntType>,MulFloatingPoint,SetOne,SetZero,Sub<UnsignedIntType>,ValueEquals<UnsignedIntType>,Type<UnsignedIntType>
TODO
- Author:
- Stephan Preibisch, Stephan Saalfeld
-
Field Summary
Fields inherited from class net.imglib2.type.numeric.integer.GenericIntType
dataAccess, img -
Constructor Summary
ConstructorsConstructorDescriptionUnsignedIntType(long value) UnsignedIntType(IntAccess access) UnsignedIntType(NativeImg<?, ? extends IntAccess> img) -
Method Summary
Modifier and TypeMethodDescriptionvoidintcopy()NativeImg<UnsignedIntType, ? extends IntAccess> createSuitableNativeImg(NativeImgFactory<UnsignedIntType> 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.voiddec()voidCreates a newNativeTypewhich stores in the same physical array.longget()static intgetCodedSignedInt(long unsignedInt) static intgetCodedSignedIntChecked(long unsignedInt) intlongdoubledoublestatic longgetUnsignedInt(int signedInt) inthashCode()voidinc()voidmul(double c) voidmul(float c) voidvoidset(long f) voidvoidsetInteger(int f) voidsetInteger(long f) voidsetOne()voidsetZero()voidtoString()Methods inherited from class net.imglib2.type.numeric.integer.GenericIntType
decIndex, decIndex, getBitsPerPixel, getEntitiesPerPixel, getIndex, getInt, getValue, incIndex, incIndex, set, setInt, setValue, updateContainer, updateIndex, valueEqualsMethods inherited from class net.imglib2.type.numeric.integer.AbstractIntegerType
getMinIncrement, getRealDouble, getRealFloat, setReal, setRealMethods inherited from class net.imglib2.type.numeric.real.AbstractRealType
equals, getImaginaryDouble, getImaginaryFloat, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, setImaginary, setImaginaryMethods inherited from class net.imglib2.type.numeric.complex.AbstractComplexType
complexConjugate, setComplexNumber, setComplexNumberMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.imglib2.type.numeric.ComplexType
complexConjugate, getImaginaryDouble, getImaginaryFloat, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, setComplexNumber, setComplexNumber, setImaginary, setImaginary
-
Constructor Details
-
UnsignedIntType
-
UnsignedIntType
public UnsignedIntType(long value) -
UnsignedIntType
-
UnsignedIntType
public UnsignedIntType()
-
-
Method Details
-
getCodedSignedIntChecked
public static int getCodedSignedIntChecked(long unsignedInt) -
getCodedSignedInt
public static int getCodedSignedInt(long unsignedInt) -
getUnsignedInt
public static long getUnsignedInt(int signedInt) -
createSuitableNativeImg
public NativeImg<UnsignedIntType,? extends IntAccess> createSuitableNativeImg(NativeImgFactory<UnsignedIntType> 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
-
mul
public void mul(float c) - Specified by:
mulin interfaceMulFloatingPoint- Overrides:
mulin classGenericIntType<UnsignedIntType>
-
mul
public void mul(double c) - Specified by:
mulin interfaceMulFloatingPoint- Overrides:
mulin classGenericIntType<UnsignedIntType>
-
add
- Specified by:
addin interfaceAdd<UnsignedIntType>- Overrides:
addin classGenericIntType<UnsignedIntType>
-
div
- Specified by:
divin interfaceDiv<UnsignedIntType>- Overrides:
divin classGenericIntType<UnsignedIntType>
-
mul
- Specified by:
mulin interfaceMul<UnsignedIntType>- Overrides:
mulin classGenericIntType<UnsignedIntType>
-
sub
- Specified by:
subin interfaceSub<UnsignedIntType>- Overrides:
subin classGenericIntType<UnsignedIntType>
-
setOne
public void setOne()- Specified by:
setOnein interfaceSetOne- Overrides:
setOnein classGenericIntType<UnsignedIntType>
-
setZero
public void setZero()- Specified by:
setZeroin interfaceSetZero- Overrides:
setZeroin classGenericIntType<UnsignedIntType>
-
inc
public void inc()- Specified by:
incin interfaceRealType<UnsignedIntType>- Overrides:
incin classGenericIntType<UnsignedIntType>
-
dec
public void dec()- Specified by:
decin interfaceRealType<UnsignedIntType>- Overrides:
decin classGenericIntType<UnsignedIntType>
-
toString
- Overrides:
toStringin classGenericIntType<UnsignedIntType>
-
get
public long get() -
set
public void set(long f) -
getInteger
public int getInteger() -
getIntegerLong
public long getIntegerLong() -
getBigInteger
-
setInteger
public void setInteger(int f) -
setInteger
public void setInteger(long f) -
setBigInteger
-
getMaxValue
public double getMaxValue() -
getMinValue
public double getMinValue() -
hashCode
public int hashCode()- Overrides:
hashCodein classGenericIntType<UnsignedIntType>
-
compareTo
- Specified by:
compareToin interfaceComparable<UnsignedIntType>- Overrides:
compareToin classGenericIntType<UnsignedIntType>
-
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
-