Package net.imglib2.type.numeric.integer
Class UnsignedShortType
java.lang.Object
net.imglib2.type.numeric.complex.AbstractComplexType<UnsignedShortType>
net.imglib2.type.numeric.real.AbstractRealType<UnsignedShortType>
net.imglib2.type.numeric.integer.AbstractIntegerType<UnsignedShortType>
net.imglib2.type.numeric.integer.GenericShortType<UnsignedShortType>
net.imglib2.type.numeric.integer.UnsignedShortType
- All Implemented Interfaces:
Comparable<UnsignedShortType>,NativeType<UnsignedShortType>,ComplexType<UnsignedShortType>,IntegerType<UnsignedShortType>,NumericType<UnsignedShortType>,RealType<UnsignedShortType>,Add<UnsignedShortType>,Div<UnsignedShortType>,Mul<UnsignedShortType>,MulFloatingPoint,SetOne,SetZero,Sub<UnsignedShortType>,ValueEquals<UnsignedShortType>,Type<UnsignedShortType>
TODO
- Author:
- Stephan Preibisch, Stephan Saalfeld
-
Field Summary
Fields inherited from class net.imglib2.type.numeric.integer.GenericShortType
dataAccess, img -
Constructor Summary
ConstructorsConstructorDescriptionUnsignedShortType(int value) UnsignedShortType(ShortAccess access) UnsignedShortType(NativeImg<?, ? extends ShortAccess> img) -
Method Summary
Modifier and TypeMethodDescriptionvoidintcopy()NativeImg<UnsignedShortType, ? extends ShortAccess> createSuitableNativeImg(NativeImgFactory<UnsignedShortType> 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.voiddec()voidCreates a newNativeTypewhich stores in the same physical array.intget()static shortgetCodedSignedShort(int unsignedShort) static shortgetCodedSignedShortChecked(int unsignedShort) intlongdoubledoublestatic intgetUnsignedShort(short signedShort) inthashCode()voidinc()voidmul(double c) voidmul(float c) voidvoidset(int f) voidvoidsetInteger(int f) voidsetInteger(long f) voidtoString()Methods inherited from class net.imglib2.type.numeric.integer.GenericShortType
decIndex, decIndex, getBitsPerPixel, getEntitiesPerPixel, getIndex, getShort, getValue, incIndex, incIndex, set, setOne, setShort, setValue, setZero, 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
-
UnsignedShortType
-
UnsignedShortType
public UnsignedShortType(int value) -
UnsignedShortType
-
UnsignedShortType
public UnsignedShortType()
-
-
Method Details
-
getCodedSignedShortChecked
public static short getCodedSignedShortChecked(int unsignedShort) -
getCodedSignedShort
public static short getCodedSignedShort(int unsignedShort) -
getUnsignedShort
public static int getUnsignedShort(short signedShort) -
createSuitableNativeImg
public NativeImg<UnsignedShortType,? extends ShortAccess> createSuitableNativeImg(NativeImgFactory<UnsignedShortType> 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
-
mul
public void mul(float c) - Specified by:
mulin interfaceMulFloatingPoint- Overrides:
mulin classGenericShortType<UnsignedShortType>
-
mul
public void mul(double c) - Specified by:
mulin interfaceMulFloatingPoint- Overrides:
mulin classGenericShortType<UnsignedShortType>
-
add
- Specified by:
addin interfaceAdd<UnsignedShortType>- Overrides:
addin classGenericShortType<UnsignedShortType>
-
div
- Specified by:
divin interfaceDiv<UnsignedShortType>- Overrides:
divin classGenericShortType<UnsignedShortType>
-
mul
- Specified by:
mulin interfaceMul<UnsignedShortType>- Overrides:
mulin classGenericShortType<UnsignedShortType>
-
sub
- Specified by:
subin interfaceSub<UnsignedShortType>- Overrides:
subin classGenericShortType<UnsignedShortType>
-
inc
public void inc()- Specified by:
incin interfaceRealType<UnsignedShortType>- Overrides:
incin classGenericShortType<UnsignedShortType>
-
dec
public void dec()- Specified by:
decin interfaceRealType<UnsignedShortType>- Overrides:
decin classGenericShortType<UnsignedShortType>
-
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() -
hashCode
public int hashCode()- Overrides:
hashCodein classGenericShortType<UnsignedShortType>
-
compareTo
- Specified by:
compareToin interfaceComparable<UnsignedShortType>- Overrides:
compareToin classGenericShortType<UnsignedShortType>
-
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
-
toString
- Overrides:
toStringin classGenericShortType<UnsignedShortType>
-