public class ByteType extends GenericByteType<ByteType>
Constructor and Description |
---|
ByteType() |
ByteType(byte value) |
ByteType(DirectAccessContainer<ByteType,? extends ByteAccess> byteStorage) |
Modifier and Type | Method and Description |
---|---|
ByteType |
copy()
|
ByteType[] |
createArray1D(int size1)
Creates a 1d array of the generic
Type |
ByteType[][] |
createArray2D(int size1,
int size2)
Creates a 2d array of the generic
Type |
ByteType[][][] |
createArray3D(int size1,
int size2,
int size3)
Creates a 3d array of the generic
Type |
DirectAccessContainer<ByteType,? extends ByteAccess> |
createSuitableDirectAccessContainer(DirectAccessContainerFactory storageFactory,
int[] dim)
The
Type creates the DirectAccessContainer used for storing image data; based on the given storage strategy and its size. |
ByteType |
createVariable()
Creates a new
Type which can only store one value. |
ByteType |
duplicateTypeOnSameDirectAccessContainer()
Creates a new
Type which stores in the same physical array. |
byte |
get() |
int |
getInteger() |
long |
getIntegerLong() |
double |
getMaxValue() |
double |
getMinValue() |
void |
set(byte 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 ByteType(DirectAccessContainer<ByteType,? extends ByteAccess> byteStorage)
public ByteType(byte value)
public ByteType()
public DirectAccessContainer<ByteType,? extends ByteAccess> 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 ByteType duplicateTypeOnSameDirectAccessContainer()
Type
Type
which stores in the same physical array. This is only used internally.Type
instance working on the same DirectAccessContainer
public byte get()
public void set(byte b)
public int getInteger()
public long getIntegerLong()
public void setInteger(int f)
public void setInteger(long f)
public double getMaxValue()
public double getMinValue()
public ByteType[] createArray1D(int size1)
Type
Type
size1
- - the size of the arraypublic ByteType[][] createArray2D(int size1, int size2)
Type
Type
size1
- - the size of the arraysize2
- - the size of the arraypublic ByteType[][][] 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 ByteType createVariable()
Type
Type
which can only store one value.Type
instanceCopyright © 2015–2021 Fiji. All rights reserved.