Package net.imglib2.img
Class AbstractImg<T>
- java.lang.Object
-
- net.imglib2.img.AbstractImg<T>
-
- All Implemented Interfaces:
java.lang.Iterable<T>,Dimensions,EuclideanSpace,Img<T>,Interval,IterableInterval<T>,IterableRealInterval<T>,RandomAccessible<T>,RandomAccessibleInterval<T>,RealInterval,Typed<T>
- Direct Known Subclasses:
AbstractListImg,AbstractLongListImg,AbstractNativeImg
public abstract class AbstractImg<T> extends java.lang.Object implements Img<T>
TODO
-
-
Constructor Summary
Constructors Constructor Description AbstractImg(long[] size)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longdimension(int d)Default implementation ofDimensions.dimension(int).voiddimensions(long[] s)Write the number of pixels in each dimension into long[].longmax(int d)Get the maximum in dimension d.voidmax(long[] m)Write the maximum of each dimension into long[].voidmax(Positionable m)Sets aPositionableto the maximum of thisIntervallongmin(int d)Get the minimum in dimension d.voidmin(long[] m)Write the minimum of each dimension into long[].voidmin(Positionable m)Sets aPositionableto the minimum of thisIntervalintnumDimensions()Gets the space's number of dimensions.static longnumElements(long[] dim)RandomAccess<T>randomAccess(Interval interval)Create a random access sampler for integer coordinates.voidrealMax(double[] m)Write the maximum of each dimension into double[].doublerealMax(int d)Get the maximum in dimension d.voidrealMax(RealPositionable m)Sets aRealPositionableto the maximum of thisIntervalvoidrealMin(double[] m)Write the minimum of each dimension into double[].doublerealMin(int d)Get the minimum in dimension d.voidrealMin(RealPositionable m)Sets aRealPositionableto the minimum of thisIntervallongsize()Returns the number of elements in thisFunction.java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.imglib2.Dimensions
dimensions, dimensionsAsLongArray, dimensionsAsPoint
-
Methods inherited from interface net.imglib2.Interval
maxAsLongArray, maxAsPoint, minAsLongArray, minAsPoint
-
Methods inherited from interface net.imglib2.IterableInterval
localizingSpliterator, spliterator
-
Methods inherited from interface net.imglib2.IterableRealInterval
firstElement, getType, iterator, parallelStream, stream
-
Methods inherited from interface net.imglib2.RandomAccessible
getAt, getAt, getAt, randomAccess
-
Methods inherited from interface net.imglib2.RandomAccessibleInterval
cursor, iterationOrder, localizingCursor
-
Methods inherited from interface net.imglib2.RealInterval
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint
-
-
-
-
Method Detail
-
numElements
public static long numElements(long[] dim)
-
numDimensions
public int numDimensions()
Description copied from interface:EuclideanSpaceGets the space's number of dimensions.- Specified by:
numDimensionsin interfaceEuclideanSpace
-
dimensions
public void dimensions(long[] s)
Description copied from interface:DimensionsWrite the number of pixels in each dimension into long[].- Specified by:
dimensionsin interfaceDimensions
-
dimension
public long dimension(int d)
Description copied from interface:IntervalDefault implementation ofDimensions.dimension(int).- Specified by:
dimensionin interfaceDimensions- Specified by:
dimensionin interfaceInterval
-
size
public long size()
Description copied from interface:IterableRealIntervalReturns the number of elements in this
Function.- Specified by:
sizein interfaceIterableRealInterval<T>- Specified by:
sizein interfaceRandomAccessibleInterval<T>- Returns:
- number of elements
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
realMax
public double realMax(int d)
Description copied from interface:RealIntervalGet the maximum in dimension d.- Specified by:
realMaxin interfaceInterval- Specified by:
realMaxin interfaceRealInterval- Parameters:
d- dimension- Returns:
- maximum in dimension d.
-
realMax
public void realMax(double[] m)
Description copied from interface:RealIntervalWrite the maximum of each dimension into double[].- Specified by:
realMaxin interfaceRealInterval
-
realMax
public void realMax(RealPositionable m)
Description copied from interface:RealIntervalSets aRealPositionableto the maximum of thisInterval- Specified by:
realMaxin interfaceRealInterval
-
realMin
public double realMin(int d)
Description copied from interface:RealIntervalGet the minimum in dimension d.- Specified by:
realMinin interfaceInterval- Specified by:
realMinin interfaceRealInterval- Parameters:
d- dimension- Returns:
- minimum in dimension d.
-
realMin
public void realMin(double[] m)
Description copied from interface:RealIntervalWrite the minimum of each dimension into double[].- Specified by:
realMinin interfaceRealInterval
-
realMin
public void realMin(RealPositionable m)
Description copied from interface:RealIntervalSets aRealPositionableto the minimum of thisInterval- Specified by:
realMinin interfaceRealInterval
-
max
public long max(int d)
Description copied from interface:IntervalGet the maximum in dimension d.
-
max
public void max(long[] m)
Description copied from interface:IntervalWrite the maximum of each dimension into long[].
-
max
public void max(Positionable m)
Description copied from interface:IntervalSets aPositionableto the maximum of thisInterval
-
min
public void min(long[] m)
Description copied from interface:IntervalWrite the minimum of each dimension into long[].
-
min
public long min(int d)
Description copied from interface:IntervalGet the minimum in dimension d.
-
min
public void min(Positionable m)
Description copied from interface:IntervalSets aPositionableto the minimum of thisInterval
-
randomAccess
public RandomAccess<T> randomAccess(Interval interval)
Description copied from interface:RandomAccessibleCreate a random access sampler for integer coordinates.The returned random access is intended to be used in the specified interval only. Thus, the RandomAccessible may provide optimized versions. If the interval is completely contained in the domain, the random access is guaranteed to provide the same values as that obtained by
RandomAccessible.randomAccess()within the interval.- Specified by:
randomAccessin interfaceRandomAccessible<T>- Parameters:
interval- in which interval you intend to use the random access.- Returns:
- random access sampler
-
-