Package net.imglib2.type.volatiles
Class AbstractVolatileNativeRealType<R extends RealType<R> & NativeType<R>,T extends AbstractVolatileNativeRealType<R,T>>
- java.lang.Object
-
- net.imglib2.Volatile<R>
-
- net.imglib2.type.volatiles.AbstractVolatileRealType<R,T>
-
- net.imglib2.type.volatiles.AbstractVolatileNativeRealType<R,T>
-
- Type Parameters:
R- wrapped nativeRealType.T- type of derived concrete class.
- All Implemented Interfaces:
java.lang.Comparable<T>,NativeType<T>,ComplexType<T>,NumericType<T>,RealType<T>,Add<T>,Div<T>,Mul<T>,MulFloatingPoint,Pow<T>,PowFloatingPoint,SetOne,SetZero,Sub<T>,ValueEquals<T>,Type<T>
- Direct Known Subclasses:
VolatileByteType,VolatileDoubleType,VolatileFloatType,VolatileIntType,VolatileLongType,VolatileShortType,VolatileUnsignedByteType,VolatileUnsignedIntType,VolatileUnsignedLongType,VolatileUnsignedShortType
public abstract class AbstractVolatileNativeRealType<R extends RealType<R> & NativeType<R>,T extends AbstractVolatileNativeRealType<R,T>> extends AbstractVolatileRealType<R,T> implements NativeType<T>
-
-
Constructor Summary
Constructors Constructor Description AbstractVolatileNativeRealType(R t, boolean valid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FractiongetEntitiesPerPixel()Get the number of entities in the storage array required to store one pixel value.Indexindex()Get the (modifiable) index into the current data array.-
Methods inherited from class net.imglib2.type.volatiles.AbstractVolatileRealType
add, compareTo, complexConjugate, dec, div, equals, getBitsPerPixel, getImaginaryDouble, getImaginaryFloat, getMaxValue, getMinIncrement, getMinValue, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, getRealDouble, getRealFloat, hashCode, inc, mul, mul, mul, pow, pow, set, setComplexNumber, setComplexNumber, setImaginary, setImaginary, setOne, setReal, setReal, setZero, sub, valueEquals
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.imglib2.type.NativeType
decIndex, decIndex, duplicateTypeOnSameNativeImg, getIndex, getNativeTypeFactory, incIndex, incIndex, updateContainer, updateIndex
-
Methods inherited from interface net.imglib2.type.Type
copy, createVariable, set
-
Methods inherited from interface net.imglib2.type.operators.ValueEquals
valueEquals
-
-
-
-
Constructor Detail
-
AbstractVolatileNativeRealType
public AbstractVolatileNativeRealType(R t, boolean valid)
-
-
Method Detail
-
getEntitiesPerPixel
public Fraction 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<R extends RealType<R> & NativeType<R>>- Returns:
- the number of storage type entities required to store one pixel value.
-
index
public Index 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<R extends RealType<R> & NativeType<R>>
-
-