Package net.imglib2.type.numeric.integer
Class UnsignedByteType
- java.lang.Object
-
- net.imglib2.type.numeric.complex.AbstractComplexType<T>
-
- net.imglib2.type.numeric.real.AbstractRealType<T>
-
- net.imglib2.type.numeric.integer.AbstractIntegerType<T>
-
- net.imglib2.type.numeric.integer.GenericByteType<UnsignedByteType>
-
- net.imglib2.type.numeric.integer.UnsignedByteType
-
- All Implemented Interfaces:
java.lang.Comparable<UnsignedByteType>
,NativeType<UnsignedByteType>
,ComplexType<UnsignedByteType>
,IntegerType<UnsignedByteType>
,NumericType<UnsignedByteType>
,RealType<UnsignedByteType>
,Add<UnsignedByteType>
,Div<UnsignedByteType>
,Mul<UnsignedByteType>
,MulFloatingPoint
,SetOne
,SetZero
,Sub<UnsignedByteType>
,ValueEquals<UnsignedByteType>
,Type<UnsignedByteType>
public class UnsignedByteType extends GenericByteType<UnsignedByteType>
TODO- Author:
- Stephan Preibisch, Stephan Saalfeld
-
-
Field Summary
-
Fields inherited from class net.imglib2.type.numeric.integer.GenericByteType
dataAccess, img
-
-
Constructor Summary
Constructors Constructor Description UnsignedByteType()
UnsignedByteType(int value)
UnsignedByteType(ByteAccess access)
UnsignedByteType(NativeImg<?,? extends ByteAccess> img)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(UnsignedByteType c)
int
compareTo(UnsignedByteType c)
UnsignedByteType
copy()
NativeImg<UnsignedByteType,? extends ByteAccess>
createSuitableNativeImg(NativeImgFactory<UnsignedByteType> storageFactory, long[] dim)
TheNativeType
creates theNativeImg
used for storing image data; based on the given storage strategy and its size.UnsignedByteType
createVariable()
Creates a newType
variable which can only store one value.void
div(UnsignedByteType c)
UnsignedByteType
duplicateTypeOnSameNativeImg()
Creates a newNativeType
which stores in the same physical array.int
get()
java.math.BigInteger
getBigInteger()
static byte
getCodedSignedByte(int unsignedByte)
static byte
getCodedSignedByteChecked(int unsignedByte)
int
getInteger()
long
getIntegerLong()
double
getMaxValue()
double
getMinValue()
static int
getUnsignedByte(byte signedByte)
int
hashCode()
void
mul(double c)
void
mul(float c)
void
mul(UnsignedByteType c)
void
set(int f)
void
setBigInteger(java.math.BigInteger b)
void
setInteger(int f)
void
setInteger(long f)
void
sub(UnsignedByteType c)
java.lang.String
toString()
-
Methods inherited from class net.imglib2.type.numeric.integer.GenericByteType
dec, decIndex, decIndex, getBitsPerPixel, getByte, getEntitiesPerPixel, getIndex, getValue, inc, incIndex, incIndex, set, setByte, setOne, setValue, setZero, updateContainer, updateIndex, valueEquals
-
Methods inherited from class net.imglib2.type.numeric.integer.AbstractIntegerType
getMinIncrement, getRealDouble, getRealFloat, setReal, setReal
-
Methods inherited from class net.imglib2.type.numeric.real.AbstractRealType
equals, getImaginaryDouble, getImaginaryFloat, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, setImaginary, setImaginary
-
Methods inherited from class net.imglib2.type.numeric.complex.AbstractComplexType
complexConjugate, setComplexNumber, setComplexNumber
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.imglib2.type.numeric.ComplexType
complexConjugate, getImaginaryDouble, getImaginaryFloat, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, setComplexNumber, setComplexNumber, setImaginary, setImaginary
-
-
-
-
Constructor Detail
-
UnsignedByteType
public UnsignedByteType(NativeImg<?,? extends ByteAccess> img)
-
UnsignedByteType
public UnsignedByteType(int value)
-
UnsignedByteType
public UnsignedByteType(ByteAccess access)
-
UnsignedByteType
public UnsignedByteType()
-
-
Method Detail
-
getCodedSignedByteChecked
public static byte getCodedSignedByteChecked(int unsignedByte)
-
getCodedSignedByte
public static byte getCodedSignedByte(int unsignedByte)
-
getUnsignedByte
public static int getUnsignedByte(byte signedByte)
-
createSuitableNativeImg
public NativeImg<UnsignedByteType,? extends ByteAccess> createSuitableNativeImg(NativeImgFactory<UnsignedByteType> storageFactory, long[] dim)
Description copied from interface:NativeType
TheNativeType
creates theNativeImg
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 containers and the basic types.
-
duplicateTypeOnSameNativeImg
public UnsignedByteType duplicateTypeOnSameNativeImg()
Description copied from interface:NativeType
Creates a newNativeType
which stores in the same physical array. This is only used internally.- Returns:
- a new
NativeType
instance working on the sameNativeImg
-
mul
public void mul(float c)
- Specified by:
mul
in interfaceMulFloatingPoint
- Overrides:
mul
in classGenericByteType<UnsignedByteType>
-
mul
public void mul(double c)
- Specified by:
mul
in interfaceMulFloatingPoint
- Overrides:
mul
in classGenericByteType<UnsignedByteType>
-
add
public void add(UnsignedByteType c)
- Specified by:
add
in interfaceAdd<UnsignedByteType>
- Overrides:
add
in classGenericByteType<UnsignedByteType>
-
div
public void div(UnsignedByteType c)
- Specified by:
div
in interfaceDiv<UnsignedByteType>
- Overrides:
div
in classGenericByteType<UnsignedByteType>
-
mul
public void mul(UnsignedByteType c)
- Specified by:
mul
in interfaceMul<UnsignedByteType>
- Overrides:
mul
in classGenericByteType<UnsignedByteType>
-
sub
public void sub(UnsignedByteType c)
- Specified by:
sub
in interfaceSub<UnsignedByteType>
- Overrides:
sub
in classGenericByteType<UnsignedByteType>
-
get
public int get()
-
set
public void set(int f)
-
getInteger
public int getInteger()
-
getIntegerLong
public long getIntegerLong()
-
getBigInteger
public java.math.BigInteger getBigInteger()
-
setInteger
public void setInteger(int f)
-
setInteger
public void setInteger(long f)
-
setBigInteger
public void setBigInteger(java.math.BigInteger b)
-
getMaxValue
public double getMaxValue()
-
getMinValue
public double getMinValue()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classGenericByteType<UnsignedByteType>
-
compareTo
public int compareTo(UnsignedByteType c)
- Specified by:
compareTo
in interfacejava.lang.Comparable<UnsignedByteType>
- Overrides:
compareTo
in classGenericByteType<UnsignedByteType>
-
createVariable
public UnsignedByteType createVariable()
Description copied from interface:Type
Creates a newType
variable which can only store one value.- Returns:
- a new
Type
variable
-
copy
public UnsignedByteType copy()
Description copied from interface:Type
- Returns:
- a new
Type
variable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classGenericByteType<UnsignedByteType>
-
-