public class UnsignedIntType extends GenericIntType<UnsignedIntType>
Constructor and Description |
---|
UnsignedIntType() |
UnsignedIntType(DirectAccessContainer<UnsignedIntType,? extends IntAccess> intStorage) |
UnsignedIntType(long value) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(UnsignedIntType c) |
UnsignedIntType |
copy()
|
UnsignedIntType[] |
createArray1D(int size1)
Creates a 1d array of the generic
Type |
UnsignedIntType[][] |
createArray2D(int size1,
int size2)
Creates a 2d array of the generic
Type |
UnsignedIntType[][][] |
createArray3D(int size1,
int size2,
int size3)
Creates a 3d array of the generic
Type |
DirectAccessContainer<UnsignedIntType,? extends IntAccess> |
createSuitableDirectAccessContainer(DirectAccessContainerFactory storageFactory,
int[] dim)
The
Type creates the DirectAccessContainer used for storing image data; based on the given storage strategy and its size. |
UnsignedIntType |
createVariable()
Creates a new
Type which can only store one value. |
void |
div(UnsignedIntType c) |
UnsignedIntType |
duplicateTypeOnSameDirectAccessContainer()
Creates a new
Type which stores in the same physical array. |
long |
get() |
static int |
getCodedSignedInt(long unsignedInt) |
static int |
getCodedSignedIntChecked(long unsignedInt) |
int |
getInteger() |
long |
getIntegerLong() |
double |
getMaxValue() |
double |
getMinValue() |
static long |
getUnsignedInt(int signedInt) |
void |
mul(double c) |
void |
mul(float c) |
void |
set(long f) |
void |
setInteger(int f) |
void |
setInteger(long f) |
add, dec, getValue, inc, mul, set, setOne, setValue, setZero, sub, toString, updateContainer
getDefaultDisplay, getMinIncrement, getRealDouble, getRealFloat, setReal, setReal
decIndex, decIndex, getComplexDouble, getComplexFloat, getEntitiesPerPixel, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, incIndex, incIndex, setComplex, setComplex, updateIndex
complexConjugate, getPreferredRealPrecision, setComplexNumber, setComplexNumber
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
complexConjugate, getComplexDouble, getComplexFloat, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, getPreferredRealPrecision, setComplex, setComplex, setComplexNumber, setComplexNumber
decIndex, decIndex, getEntitiesPerPixel, getIndex, incIndex, incIndex, updateIndex
public UnsignedIntType(DirectAccessContainer<UnsignedIntType,? extends IntAccess> intStorage)
public UnsignedIntType(long value)
public UnsignedIntType()
public static int getCodedSignedIntChecked(long unsignedInt)
public static int getCodedSignedInt(long unsignedInt)
public static long getUnsignedInt(int signedInt)
public DirectAccessContainer<UnsignedIntType,? extends IntAccess> createSuitableDirectAccessContainer(DirectAccessContainerFactory storageFactory, int[] dim)
Type
Type
creates the DirectAccessContainer 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 Image
and the basic types.storageFactory
- - Which storage strategy is useddim
- - the dimensionsType
knowns the BasicType it contains.public UnsignedIntType duplicateTypeOnSameDirectAccessContainer()
Type
Type
which stores in the same physical array. This is only used internally.Type
instance working on the same DirectAccessContainer
public void mul(float c)
mul
in interface NumericType<UnsignedIntType>
mul
in class GenericIntType<UnsignedIntType>
public void mul(double c)
mul
in interface NumericType<UnsignedIntType>
mul
in class GenericIntType<UnsignedIntType>
public long get()
public void set(long f)
public int getInteger()
public long getIntegerLong()
public void setInteger(int f)
public void setInteger(long f)
public double getMaxValue()
public double getMinValue()
public void div(UnsignedIntType c)
div
in interface NumericType<UnsignedIntType>
div
in class GenericIntType<UnsignedIntType>
public int compareTo(UnsignedIntType c)
compareTo
in interface Comparable<UnsignedIntType>
compareTo
in class GenericIntType<UnsignedIntType>
public UnsignedIntType[] createArray1D(int size1)
Type
Type
size1
- - the size of the arraypublic UnsignedIntType[][] createArray2D(int size1, int size2)
Type
Type
size1
- - the size of the arraysize2
- - the size of the arraypublic UnsignedIntType[][][] createArray3D(int size1, int size2, int size3)
Type
Type
size1
- - the size of the arraysize2
- - the size of the arraysize3
- - the size of the arraypublic UnsignedIntType createVariable()
Type
Type
which can only store one value.Type
instancepublic UnsignedIntType copy()
Type
copy
in interface Type<UnsignedIntType>
copy
in class TypeImpl<UnsignedIntType>
Type
instanceCopyright © 2015–2021 Fiji. All rights reserved.