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,Pow<UnsignedByteType>,PowFloatingPoint,SetOne,SetZero,Sub<UnsignedByteType>,ValueEquals<UnsignedByteType>,Type<UnsignedByteType>
- Direct Known Subclasses:
VolatileUnsignedByteType.WrappedUnsignedByteType
public class UnsignedByteType extends GenericByteType<UnsignedByteType>
TODO
-
-
Field Summary
Fields Modifier and Type Field Description private static NativeTypeFactory<UnsignedByteType,ByteAccess>typeFactory-
Fields inherited from class net.imglib2.type.numeric.integer.GenericByteType
dataAccess, i, 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 voidadd(UnsignedByteType c)intcompareTo(UnsignedByteType other)UnsignedByteTypecopy()UnsignedByteTypecreateVariable()Creates a newTypevariable which can only store one value.voiddiv(UnsignedByteType c)UnsignedByteTypeduplicateTypeOnSameNativeImg()Creates a newNativeTypewhich stores in the same physical array.intget()java.math.BigIntegergetBigInteger()static bytegetCodedSignedByte(int unsignedByte)static bytegetCodedSignedByteChecked(int unsignedByte)intgetInteger()longgetIntegerLong()doublegetMaxValue()doublegetMinValue()NativeTypeFactory<UnsignedByteType,ByteAccess>getNativeTypeFactory()static intgetUnsignedByte(byte signedByte)voidmul(double c)voidmul(float c)voidmul(UnsignedByteType c)voidset(int f)voidsetBigInteger(java.math.BigInteger b)voidsetInteger(int f)voidsetInteger(long f)voidsub(UnsignedByteType c)java.lang.StringtoString()-
Methods inherited from class net.imglib2.type.numeric.integer.GenericByteType
dec, equals, getBitsPerPixel, getByte, getEntitiesPerPixel, getValue, hashCode, inc, index, set, setByte, setOne, setValue, setZero, updateContainer, 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
getImaginaryDouble, getImaginaryFloat, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, pow, pow, 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
-
Methods inherited from interface net.imglib2.type.NativeType
decIndex, decIndex, getIndex, incIndex, incIndex, updateIndex
-
Methods inherited from interface net.imglib2.type.operators.PowFloatingPoint
pow
-
-
-
-
Field Detail
-
typeFactory
private static final NativeTypeFactory<UnsignedByteType,ByteAccess> typeFactory
-
-
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)
-
duplicateTypeOnSameNativeImg
public UnsignedByteType duplicateTypeOnSameNativeImg()
Description copied from interface:NativeTypeCreates a newNativeTypewhich stores in the same physical array. This is only used internally.- Returns:
- a new
NativeTypeinstance working on the sameNativeImg
-
getNativeTypeFactory
public NativeTypeFactory<UnsignedByteType,ByteAccess> getNativeTypeFactory()
- Specified by:
getNativeTypeFactoryin interfaceNativeType<UnsignedByteType>- Specified by:
getNativeTypeFactoryin classGenericByteType<UnsignedByteType>
-
mul
public void mul(float c)
- Specified by:
mulin interfaceMulFloatingPoint- Overrides:
mulin classGenericByteType<UnsignedByteType>
-
mul
public void mul(double c)
- Specified by:
mulin interfaceMulFloatingPoint- Overrides:
mulin classGenericByteType<UnsignedByteType>
-
add
public void add(UnsignedByteType c)
- Specified by:
addin interfaceAdd<UnsignedByteType>- Overrides:
addin classGenericByteType<UnsignedByteType>
-
div
public void div(UnsignedByteType c)
- Specified by:
divin interfaceDiv<UnsignedByteType>- Overrides:
divin classGenericByteType<UnsignedByteType>
-
mul
public void mul(UnsignedByteType c)
- Specified by:
mulin interfaceMul<UnsignedByteType>- Overrides:
mulin classGenericByteType<UnsignedByteType>
-
sub
public void sub(UnsignedByteType c)
- Specified by:
subin interfaceSub<UnsignedByteType>- Overrides:
subin 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()
-
createVariable
public UnsignedByteType createVariable()
Description copied from interface:TypeCreates a newTypevariable which can only store one value.- Returns:
- a new
Typevariable
-
copy
public UnsignedByteType copy()
Description copied from interface:Type- Returns:
- a new
Typevariable
-
toString
public java.lang.String toString()
- Overrides:
toStringin classGenericByteType<UnsignedByteType>
-
compareTo
public int compareTo(UnsignedByteType other)
- Specified by:
compareToin interfacejava.lang.Comparable<UnsignedByteType>- Overrides:
compareToin classGenericByteType<UnsignedByteType>
-
-