public class ShortType extends GenericShortType<ShortType>
Constructor and Description |
---|
ShortType() |
ShortType(DirectAccessContainer<ShortType,? extends ShortAccess> shortStorage) |
ShortType(short value) |
Modifier and Type | Method and Description |
---|---|
ShortType |
copy()
|
ShortType[] |
createArray1D(int size1)
Creates a 1d array of the generic
Type |
ShortType[][] |
createArray2D(int size1,
int size2)
Creates a 2d array of the generic
Type |
ShortType[][][] |
createArray3D(int size1,
int size2,
int size3)
Creates a 3d array of the generic
Type |
DirectAccessContainer<ShortType,? 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. |
ShortType |
createVariable()
Creates a new
Type which can only store one value. |
ShortType |
duplicateTypeOnSameDirectAccessContainer()
Creates a new
Type which stores in the same physical array. |
short |
get() |
int |
getInteger() |
long |
getIntegerLong() |
double |
getMaxValue() |
double |
getMinValue() |
void |
set(short b) |
void |
setInteger(int f) |
void |
setInteger(long f) |
add, compareTo, dec, div, getValue, inc, mul, mul, 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 ShortType(DirectAccessContainer<ShortType,? extends ShortAccess> shortStorage)
public ShortType(short value)
public ShortType()
public DirectAccessContainer<ShortType,? 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 ShortType duplicateTypeOnSameDirectAccessContainer()
Type
Type
which stores in the same physical array. This is only used internally.Type
instance working on the same DirectAccessContainer
public short get()
public void set(short b)
public int getInteger()
public long getIntegerLong()
public void setInteger(int f)
public void setInteger(long f)
public double getMaxValue()
public double getMinValue()
public ShortType[] createArray1D(int size1)
Type
Type
size1
- - the size of the arraypublic ShortType[][] createArray2D(int size1, int size2)
Type
Type
size1
- - the size of the arraysize2
- - the size of the arraypublic ShortType[][][] 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 ShortType createVariable()
Type
Type
which can only store one value.Type
instanceCopyright © 2015–2021 Fiji. All rights reserved.