Package net.imglib2.view
Class SubsampleIntervalView<T>
- java.lang.Object
-
- net.imglib2.view.SubsampleView<T>
-
- net.imglib2.view.SubsampleIntervalView<T>
-
- All Implemented Interfaces:
java.lang.Iterable<T>,Dimensions,EuclideanSpace,Interval,IterableInterval<T>,IterableRealInterval<T>,RandomAccessible<T>,RandomAccessibleInterval<T>,RealInterval,Typed<T>,View
public class SubsampleIntervalView<T> extends SubsampleView<T> implements RandomAccessibleInterval<T>
SubsampleIntervalViewis a view that provides access to only every sdth value of a sourceRandomAccessibleInterval. Its transformed origin is at the min coordinate of the sourceInterval. This is effectively an integer scaling and optional offset transformation. Localization calls to theRandomAccessandIntervaldimension calls to theSubsampleIntervalViewreturn scaled and translated coordinates that are generated on-the-fly. Localization is thus moderately inefficient to the benefit of faster positioning. Don't ask for what you already know ;).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.imglib2.view.SubsampleView
SubsampleView.SubsampleRandomAccess
-
-
Field Summary
Fields Modifier and Type Field Description protected long[]dimensionsprotected long[]max-
Fields inherited from class net.imglib2.view.SubsampleView
source, steps
-
-
Constructor Summary
Constructors Constructor Description SubsampleIntervalView(RandomAccessibleInterval<T> source, long step)SubsampleIntervalView(RandomAccessibleInterval<T> source, long... steps)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longdimension(int d)Default implementation ofDimensions.dimension(int).voiddimensions(long[] dim)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[] min)Write the minimum of each dimension into long[].voidmin(Positionable min)Sets aPositionableto the minimum of thisIntervalvoidrealMax(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[] min)Write the minimum of each dimension into double[].doublerealMin(int d)Get the minimum in dimension d.voidrealMin(RealPositionable min)Sets aRealPositionableto the minimum of thisInterval-
Methods inherited from class net.imglib2.view.SubsampleView
getSource, getSteps, getType, numDimensions, randomAccess, randomAccess
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.imglib2.Dimensions
dimensions, dimensionsAsLongArray, dimensionsAsPoint
-
Methods inherited from interface net.imglib2.EuclideanSpace
numDimensions
-
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, randomAccess
-
Methods inherited from interface net.imglib2.RandomAccessibleInterval
cursor, iterationOrder, localizingCursor, size
-
Methods inherited from interface net.imglib2.RealInterval
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint
-
-
-
-
Constructor Detail
-
SubsampleIntervalView
public SubsampleIntervalView(RandomAccessibleInterval<T> source, long step)
-
SubsampleIntervalView
public SubsampleIntervalView(RandomAccessibleInterval<T> source, long... steps)
-
-
Method Detail
-
min
public long min(int d)
Description copied from interface:IntervalGet the minimum in dimension d.
-
min
public void min(long[] min)
Description copied from interface:IntervalWrite the minimum of each dimension into long[].
-
min
public void min(Positionable min)
Description copied from interface:IntervalSets aPositionableto the minimum of thisInterval
-
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
-
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[] min)
Description copied from interface:RealIntervalWrite the minimum of each dimension into double[].- Specified by:
realMinin interfaceRealInterval
-
realMin
public void realMin(RealPositionable min)
Description copied from interface:RealIntervalSets aRealPositionableto the minimum of thisInterval- Specified by:
realMinin interfaceRealInterval
-
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
-
dimensions
public void dimensions(long[] dim)
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
-
-