Class UnsignedByteType
java.lang.Object
net.imglib2.type.numeric.complex.AbstractComplexType<UnsignedByteType>
net.imglib2.type.numeric.real.AbstractRealType<UnsignedByteType>
net.imglib2.type.numeric.integer.AbstractIntegerType<UnsignedByteType>
net.imglib2.type.numeric.integer.GenericByteType<UnsignedByteType>
net.imglib2.type.numeric.integer.UnsignedByteType
- All Implemented Interfaces:
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
TODO
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final NativeTypeFactory<UnsignedByteType, ByteAccess> Fields inherited from class GenericByteType
dataAccess, i, img -
Constructor Summary
ConstructorsConstructorDescriptionUnsignedByteType(int value) UnsignedByteType(ByteAccess access) UnsignedByteType(NativeImg<?, ? extends ByteAccess> img) -
Method Summary
Modifier and TypeMethodDescriptionvoidintcompareTo(UnsignedByteType other) copy()Creates a newTypevariable which can only store one value.voidCreates a newNativeTypewhich stores in the same physical array.intget()static bytegetCodedSignedByte(int unsignedByte) static bytegetCodedSignedByteChecked(int unsignedByte) intlongdoubledoublestatic intgetUnsignedByte(byte signedByte) voidmul(double c) voidmul(float c) voidvoidset(int f) voidvoidsetInteger(int f) voidsetInteger(long f) voidtoString()Methods inherited from class GenericByteType
dec, equals, getBitsPerPixel, getByte, getEntitiesPerPixel, getValue, hashCode, inc, index, set, setByte, setOne, setValue, setZero, updateContainer, valueEqualsMethods inherited from class AbstractIntegerType
getMinIncrement, getRealDouble, getRealFloat, setReal, setRealMethods inherited from class AbstractRealType
getImaginaryDouble, getImaginaryFloat, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, pow, pow, setImaginary, setImaginaryMethods inherited from class AbstractComplexType
complexConjugate, setComplexNumber, setComplexNumberMethods inherited from interface ComplexType
complexConjugate, getImaginaryDouble, getImaginaryFloat, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, setComplexNumber, setComplexNumber, setImaginary, setImaginaryMethods inherited from interface NativeType
decIndex, decIndex, getIndex, incIndex, incIndex, updateIndexMethods inherited from interface PowFloatingPoint
pow
-
Field Details
-
typeFactory
-
-
Constructor Details
-
UnsignedByteType
-
UnsignedByteType
public UnsignedByteType(int value) -
UnsignedByteType
-
UnsignedByteType
public UnsignedByteType()
-
-
Method Details
-
getCodedSignedByteChecked
public static byte getCodedSignedByteChecked(int unsignedByte) -
getCodedSignedByte
public static byte getCodedSignedByte(int unsignedByte) -
getUnsignedByte
public static int getUnsignedByte(byte signedByte) -
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
- 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
- Specified by:
addin interfaceAdd<UnsignedByteType>- Overrides:
addin classGenericByteType<UnsignedByteType>
-
div
- Specified by:
divin interfaceDiv<UnsignedByteType>- Overrides:
divin classGenericByteType<UnsignedByteType>
-
mul
- Specified by:
mulin interfaceMul<UnsignedByteType>- Overrides:
mulin classGenericByteType<UnsignedByteType>
-
sub
- 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
-
setInteger
public void setInteger(int f) -
setInteger
public void setInteger(long f) -
setBigInteger
-
getMaxValue
public double getMaxValue() -
getMinValue
public double getMinValue() -
createVariable
-
copy
-
toString
- Overrides:
toStringin classGenericByteType<UnsignedByteType>
-
compareTo
- Specified by:
compareToin interfaceComparable<UnsignedByteType>- Overrides:
compareToin classGenericByteType<UnsignedByteType>
-