public class UnsignedByteType extends GenericByteType<UnsignedByteType>
Constructor and Description |
---|
UnsignedByteType() |
UnsignedByteType(DirectAccessContainer<UnsignedByteType,? extends ByteAccess> byteStorage) |
UnsignedByteType(int value) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(UnsignedByteType c) |
UnsignedByteType |
copy()
|
UnsignedByteType[] |
createArray1D(int size1)
Creates a 1d array of the generic
Type |
UnsignedByteType[][] |
createArray2D(int size1,
int size2)
Creates a 2d array of the generic
Type |
UnsignedByteType[][][] |
createArray3D(int size1,
int size2,
int size3)
Creates a 3d array of the generic
Type |
DirectAccessContainer<UnsignedByteType,? 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. |
UnsignedByteType |
createVariable()
Creates a new
Type which can only store one value. |
void |
div(UnsignedByteType c) |
UnsignedByteType |
duplicateTypeOnSameDirectAccessContainer()
Creates a new
Type which stores in the same physical array. |
int |
get() |
static byte |
getCodedSignedByte(int unsignedByte) |
static byte |
getCodedSignedByteChecked(int unsignedByte) |
int |
getInteger() |
long |
getIntegerLong() |
double |
getMaxValue() |
double |
getMinValue() |
static int |
getUnsignedByte(byte signedByte) |
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 UnsignedByteType(DirectAccessContainer<UnsignedByteType,? extends ByteAccess> byteStorage)
public UnsignedByteType(int value)
public UnsignedByteType()
public static byte getCodedSignedByteChecked(int unsignedByte)
public static byte getCodedSignedByte(int unsignedByte)
public static int getUnsignedByte(byte signedByte)
public DirectAccessContainer<UnsignedByteType,? 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 UnsignedByteType 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<UnsignedByteType>
mul
in class GenericByteType<UnsignedByteType>
public void mul(double c)
mul
in interface NumericType<UnsignedByteType>
mul
in class GenericByteType<UnsignedByteType>
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(UnsignedByteType c)
div
in interface NumericType<UnsignedByteType>
div
in class GenericByteType<UnsignedByteType>
public int compareTo(UnsignedByteType c)
compareTo
in interface Comparable<UnsignedByteType>
compareTo
in class GenericByteType<UnsignedByteType>
public UnsignedByteType[] createArray1D(int size1)
Type
Type
size1
- - the size of the arraypublic UnsignedByteType[][] createArray2D(int size1, int size2)
Type
Type
size1
- - the size of the arraysize2
- - the size of the arraypublic UnsignedByteType[][][] 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 UnsignedByteType createVariable()
Type
Type
which can only store one value.Type
instancepublic UnsignedByteType copy()
Type
copy
in interface Type<UnsignedByteType>
copy
in class TypeImpl<UnsignedByteType>
Type
instanceCopyright © 2015–2021 Fiji. All rights reserved.