public class UnsignedShortType extends GenericShortType<UnsignedShortType>
Constructor and Description |
---|
UnsignedShortType() |
UnsignedShortType(DirectAccessContainer<UnsignedShortType,? extends ShortAccess> shortStorage) |
UnsignedShortType(int value) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(UnsignedShortType c) |
UnsignedShortType |
copy()
|
UnsignedShortType[] |
createArray1D(int size1)
Creates a 1d array of the generic
Type |
UnsignedShortType[][] |
createArray2D(int size1,
int size2)
Creates a 2d array of the generic
Type |
UnsignedShortType[][][] |
createArray3D(int size1,
int size2,
int size3)
Creates a 3d array of the generic
Type |
DirectAccessContainer<UnsignedShortType,? extends ShortAccess> |
createSuitableDirectAccessContainer(DirectAccessContainerFactory storageFactory,
int[] dim)
The
Type creates the DirectAccessContainer used for storing image data; based on the given storage strategy and its size. |
UnsignedShortType |
createVariable()
Creates a new
Type which can only store one value. |
void |
div(UnsignedShortType c) |
UnsignedShortType |
duplicateTypeOnSameDirectAccessContainer()
Creates a new
Type which stores in the same physical array. |
int |
get() |
static short |
getCodedSignedShort(int unsignedShort) |
static short |
getCodedSignedShortChecked(int unsignedShort) |
int |
getInteger() |
long |
getIntegerLong() |
double |
getMaxValue() |
double |
getMinValue() |
static int |
getUnsignedShort(short signedShort) |
void |
mul(double c) |
void |
mul(float c) |
void |
set(int 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 UnsignedShortType(DirectAccessContainer<UnsignedShortType,? extends ShortAccess> shortStorage)
public UnsignedShortType(int value)
public UnsignedShortType()
public static short getCodedSignedShortChecked(int unsignedShort)
public static short getCodedSignedShort(int unsignedShort)
public static int getUnsignedShort(short signedShort)
public DirectAccessContainer<UnsignedShortType,? extends ShortAccess> 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 UnsignedShortType 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<UnsignedShortType>
mul
in class GenericShortType<UnsignedShortType>
public void mul(double c)
mul
in interface NumericType<UnsignedShortType>
mul
in class GenericShortType<UnsignedShortType>
public int get()
public void set(int 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(UnsignedShortType c)
div
in interface NumericType<UnsignedShortType>
div
in class GenericShortType<UnsignedShortType>
public int compareTo(UnsignedShortType c)
compareTo
in interface Comparable<UnsignedShortType>
compareTo
in class GenericShortType<UnsignedShortType>
public UnsignedShortType[] createArray1D(int size1)
Type
Type
size1
- - the size of the arraypublic UnsignedShortType[][] createArray2D(int size1, int size2)
Type
Type
size1
- - the size of the arraysize2
- - the size of the arraypublic UnsignedShortType[][][] 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 UnsignedShortType createVariable()
Type
Type
which can only store one value.Type
instancepublic UnsignedShortType copy()
Type
copy
in interface Type<UnsignedShortType>
copy
in class TypeImpl<UnsignedShortType>
Type
instanceCopyright © 2015–2021 Fiji. All rights reserved.