Class AbstractVolatileNativeNumericType<N extends NumericType<N> & NativeType<N>, T extends AbstractVolatileNativeNumericType<N,T>>
java.lang.Object
net.imglib2.Volatile<N>
net.imglib2.type.volatiles.AbstractVolatileNumericType<N,T>
net.imglib2.type.volatiles.AbstractVolatileNativeNumericType<N,T>
- Type Parameters:
N- wrappednativeNumericType.T- type of derived concrete class.
- All Implemented Interfaces:
NativeType<T>, NumericType<T>, Add<T>, Div<T>, Mul<T>, MulFloatingPoint, Pow<T>, PowFloatingPoint, SetOne, SetZero, Sub<T>, ValueEquals<T>, Type<T>
- Direct Known Subclasses:
VolatileARGBType
public abstract class AbstractVolatileNativeNumericType<N extends NumericType<N> & NativeType<N>, T extends AbstractVolatileNativeNumericType<N,T>>
extends AbstractVolatileNumericType<N,T>
implements NativeType<T>
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the number of entities in the storage array required to store one pixel value.index()Get the (modifiable) index into the current data array.Methods inherited from class AbstractVolatileNumericType
add, div, equals, hashCode, mul, mul, mul, pow, pow, set, setOne, setZero, sub, valueEqualsMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface NativeType
decIndex, decIndex, duplicateTypeOnSameNativeImg, getIndex, getNativeTypeFactory, incIndex, incIndex, updateContainer, updateIndexMethods inherited from interface Type
copy, createVariable, setMethods inherited from interface ValueEquals
valueEquals
-
Constructor Details
-
AbstractVolatileNativeNumericType
-
-
Method Details
-
getEntitiesPerPixel
Description copied from interface:NativeTypeGet the number of entities in the storage array required to store one pixel value. A pixel value may be spread over several or less than one entity. For example, a complex number may require 2 entries of a float[] array to store one pixel. Or a 12-bit type might need 12/64th entries of a long[] array.- Specified by:
getEntitiesPerPixelin interfaceNativeType<N extends NumericType<N> & NativeType<N>>- Returns:
- the number of storage type entities required to store one pixel value.
-
index
Description copied from interface:NativeTypeGet the (modifiable) index into the current data array. The returned instance will always be the same for the same Type.- Specified by:
indexin interfaceNativeType<N extends NumericType<N> & NativeType<N>>
-