Package net.imglib2.type.numeric.integer
Class IntType
- All Implemented Interfaces:
Comparable<IntType>
,NativeType<IntType>
,ComplexType<IntType>
,IntegerType<IntType>
,NumericType<IntType>
,RealType<IntType>
,Add<IntType>
,Div<IntType>
,Mul<IntType>
,MulFloatingPoint
,SetOne
,SetZero
,Sub<IntType>
,ValueEquals<IntType>
,Type<IntType>
TODO
- Author:
- Stephan Preibisch, Stephan Saalfeld
-
Field Summary
Fields inherited from class net.imglib2.type.numeric.integer.GenericIntType
dataAccess, img
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()
createSuitableNativeImg
(NativeImgFactory<IntType> storageFactory, long[] dim) TheNativeType
creates theNativeImg
used for storing image data; based on the given storage strategy and its size.Creates a newType
variable which can only store one value.Creates a newNativeType
which stores in the same physical array.int
get()
int
long
double
double
void
set
(int b) void
void
setInteger
(int f) void
setInteger
(long f) Methods inherited from class net.imglib2.type.numeric.integer.GenericIntType
add, compareTo, dec, decIndex, decIndex, div, getBitsPerPixel, getEntitiesPerPixel, getIndex, getInt, getValue, hashCode, inc, incIndex, incIndex, mul, mul, mul, set, setInt, setOne, setValue, setZero, sub, toString, updateContainer, updateIndex, 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
equals, getImaginaryDouble, getImaginaryFloat, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, 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
-
Constructor Details
-
IntType
-
IntType
public IntType(int value) -
IntType
-
IntType
public IntType()
-
-
Method Details
-
createSuitableNativeImg
public NativeImg<IntType,? extends IntAccess> createSuitableNativeImg(NativeImgFactory<IntType> storageFactory, long[] dim) Description copied from interface:NativeType
TheNativeType
creates theNativeImg
used 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:NativeType
Creates a newNativeType
which stores in the same physical array. This is only used internally.- Returns:
- a new
NativeType
instance working on the sameNativeImg
-
get
public int get() -
set
public void set(int 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:Type
Creates a newType
variable which can only store one value.- Returns:
- a new
Type
variable
-
copy
Description copied from interface:Type
- Returns:
- a new
Type
variable
-