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 TypeMethodDescriptionvoid
int
copy()
NativeImg
<UnsignedIntType, ? extends IntAccess> createSuitableNativeImg
(NativeImgFactory<UnsignedIntType> storageFactory, long[] dim) TheNativeType
creates theNativeImg
used for storing image data; based on the given storage strategy and its size.Creates a newType
variable which can only store one value.void
dec()
void
Creates a newNativeType
which stores in the same physical array.long
get()
static int
getCodedSignedInt
(long unsignedInt) static int
getCodedSignedIntChecked
(long unsignedInt) int
long
double
double
static long
getUnsignedInt
(int signedInt) int
hashCode()
void
inc()
void
mul
(double c) void
mul
(float c) void
void
set
(long f) void
void
setInteger
(int f) void
setInteger
(long f) void
setOne()
void
setZero()
void
toString()
Methods inherited from class net.imglib2.type.numeric.integer.GenericIntType
decIndex, decIndex, getBitsPerPixel, getEntitiesPerPixel, getIndex, getInt, getValue, incIndex, incIndex, set, setInt, setValue, updateContainer, updateIndex, valueEquals
Methods inherited from class net.imglib2.type.numeric.integer.AbstractIntegerType
getMinIncrement, getRealDouble, getRealFloat, setReal, setReal
Methods inherited from class net.imglib2.type.numeric.real.AbstractRealType
equals, getImaginaryDouble, getImaginaryFloat, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, setImaginary, setImaginary
Methods inherited from class net.imglib2.type.numeric.complex.AbstractComplexType
complexConjugate, setComplexNumber, setComplexNumber
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:NativeType
TheNativeType
creates theNativeImg
used 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:NativeType
Creates a newNativeType
which stores in the same physical array. This is only used internally.- Returns:
- a new
NativeType
instance working on the sameNativeImg
-
mul
public void mul(float c) - Specified by:
mul
in interfaceMulFloatingPoint
- Overrides:
mul
in classGenericIntType<UnsignedIntType>
-
mul
public void mul(double c) - Specified by:
mul
in interfaceMulFloatingPoint
- Overrides:
mul
in classGenericIntType<UnsignedIntType>
-
add
- Specified by:
add
in interfaceAdd<UnsignedIntType>
- Overrides:
add
in classGenericIntType<UnsignedIntType>
-
div
- Specified by:
div
in interfaceDiv<UnsignedIntType>
- Overrides:
div
in classGenericIntType<UnsignedIntType>
-
mul
- Specified by:
mul
in interfaceMul<UnsignedIntType>
- Overrides:
mul
in classGenericIntType<UnsignedIntType>
-
sub
- Specified by:
sub
in interfaceSub<UnsignedIntType>
- Overrides:
sub
in classGenericIntType<UnsignedIntType>
-
setOne
public void setOne()- Specified by:
setOne
in interfaceSetOne
- Overrides:
setOne
in classGenericIntType<UnsignedIntType>
-
setZero
public void setZero()- Specified by:
setZero
in interfaceSetZero
- Overrides:
setZero
in classGenericIntType<UnsignedIntType>
-
inc
public void inc()- Specified by:
inc
in interfaceRealType<UnsignedIntType>
- Overrides:
inc
in classGenericIntType<UnsignedIntType>
-
dec
public void dec()- Specified by:
dec
in interfaceRealType<UnsignedIntType>
- Overrides:
dec
in classGenericIntType<UnsignedIntType>
-
toString
- Overrides:
toString
in 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:
hashCode
in classGenericIntType<UnsignedIntType>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<UnsignedIntType>
- Overrides:
compareTo
in classGenericIntType<UnsignedIntType>
-
createVariable
Description copied from interface:Type
Creates a newType
variable which can only store one value.- Returns:
- a new
Type
variable
-
copy
Description copied from interface:Type
- Returns:
- a new
Type
variable
-