Package net.imglib2.type.numeric.integer
Class ByteType
- 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<ByteType>
-
- net.imglib2.type.numeric.integer.ByteType
-
- All Implemented Interfaces:
java.lang.Comparable<ByteType>,NativeType<ByteType>,ComplexType<ByteType>,IntegerType<ByteType>,NumericType<ByteType>,RealType<ByteType>,Add<ByteType>,Div<ByteType>,Mul<ByteType>,MulFloatingPoint,Pow<ByteType>,PowFloatingPoint,SetOne,SetZero,Sub<ByteType>,ValueEquals<ByteType>,Type<ByteType>
- Direct Known Subclasses:
VolatileByteType.WrappedByteType
public class ByteType extends GenericByteType<ByteType>
TODO
-
-
Field Summary
Fields Modifier and Type Field Description private static NativeTypeFactory<ByteType,ByteAccess>typeFactory-
Fields inherited from class net.imglib2.type.numeric.integer.GenericByteType
dataAccess, i, img
-
-
Constructor Summary
Constructors Constructor Description ByteType()ByteType(byte value)ByteType(ByteAccess access)ByteType(NativeImg<?,? extends ByteAccess> img)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteTypecopy()ByteTypecreateVariable()Creates a newTypevariable which can only store one value.ByteTypeduplicateTypeOnSameNativeImg()Creates a newNativeTypewhich stores in the same physical array.byteget()java.math.BigIntegergetBigInteger()intgetInteger()longgetIntegerLong()doublegetMaxValue()doublegetMinValue()NativeTypeFactory<ByteType,ByteAccess>getNativeTypeFactory()voidset(byte b)voidsetBigInteger(java.math.BigInteger b)voidsetInteger(int f)voidsetInteger(long f)-
Methods inherited from class net.imglib2.type.numeric.integer.GenericByteType
add, compareTo, dec, div, equals, getBitsPerPixel, getByte, getEntitiesPerPixel, getValue, hashCode, inc, index, mul, mul, mul, set, setByte, setOne, setValue, setZero, sub, toString, 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<ByteType,ByteAccess> typeFactory
-
-
Constructor Detail
-
ByteType
public ByteType(NativeImg<?,? extends ByteAccess> img)
-
ByteType
public ByteType(byte value)
-
ByteType
public ByteType(ByteAccess access)
-
ByteType
public ByteType()
-
-
Method Detail
-
getNativeTypeFactory
public NativeTypeFactory<ByteType,ByteAccess> getNativeTypeFactory()
- Specified by:
getNativeTypeFactoryin interfaceNativeType<ByteType>- Specified by:
getNativeTypeFactoryin classGenericByteType<ByteType>
-
duplicateTypeOnSameNativeImg
public ByteType 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
-
get
public byte get()
-
set
public void set(byte b)
-
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 ByteType createVariable()
Description copied from interface:TypeCreates a newTypevariable which can only store one value.- Returns:
- a new
Typevariable
-
-