Package net.imglib2.type.numeric.integer
Class ShortType
- All Implemented Interfaces:
Comparable<ShortType>,NativeType<ShortType>,ComplexType<ShortType>,IntegerType<ShortType>,NumericType<ShortType>,RealType<ShortType>,Add<ShortType>,Div<ShortType>,Mul<ShortType>,MulFloatingPoint,SetOne,SetZero,Sub<ShortType>,ValueEquals<ShortType>,Type<ShortType>
TODO
- Author:
- Stephan Preibisch, Stephan Saalfeld
-
Field Summary
Fields inherited from class net.imglib2.type.numeric.integer.GenericShortType
dataAccess, img -
Constructor Summary
ConstructorsConstructorDescriptionShortType(short value) ShortType(ShortAccess access) ShortType(NativeImg<?, ? extends ShortAccess> img) -
Method Summary
Modifier and TypeMethodDescriptioncopy()NativeImg<ShortType, ? extends ShortAccess> createSuitableNativeImg(NativeImgFactory<ShortType> storageFactory, long[] dim) TheNativeTypecreates theNativeImgused for storing image data; based on the given storage strategy and its size.Creates a newTypevariable which can only store one value.Creates a newNativeTypewhich stores in the same physical array.shortget()intlongdoubledoublevoidset(short b) voidvoidsetInteger(int f) voidsetInteger(long f) Methods inherited from class net.imglib2.type.numeric.integer.GenericShortType
add, compareTo, dec, decIndex, decIndex, div, getBitsPerPixel, getEntitiesPerPixel, getIndex, getShort, getValue, hashCode, inc, incIndex, incIndex, mul, mul, mul, set, setOne, setShort, setValue, setZero, sub, toString, updateContainer, updateIndex, valueEqualsMethods inherited from class net.imglib2.type.numeric.integer.AbstractIntegerType
getMinIncrement, getRealDouble, getRealFloat, setReal, setRealMethods inherited from class net.imglib2.type.numeric.real.AbstractRealType
equals, getImaginaryDouble, getImaginaryFloat, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, setImaginary, setImaginaryMethods inherited from class net.imglib2.type.numeric.complex.AbstractComplexType
complexConjugate, setComplexNumber, setComplexNumberMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.imglib2.type.numeric.ComplexType
complexConjugate, getImaginaryDouble, getImaginaryFloat, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, setComplexNumber, setComplexNumber, setImaginary, setImaginary
-
Constructor Details
-
ShortType
-
ShortType
public ShortType(short value) -
ShortType
-
ShortType
public ShortType()
-
-
Method Details
-
createSuitableNativeImg
public NativeImg<ShortType,? extends ShortAccess> createSuitableNativeImg(NativeImgFactory<ShortType> storageFactory, long[] dim) Description copied from interface:NativeTypeTheNativeTypecreates theNativeImgused 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
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 short get() -
set
public void set(short b) -
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
Description copied from interface:TypeCreates a newTypevariable which can only store one value.- Returns:
- a new
Typevariable
-
copy
Description copied from interface:Type- Returns:
- a new
Typevariable
-