public class SubsampleIntervalView<T> extends SubsampleView<T> implements RandomAccessibleInterval<T>
SubsampleIntervalView is a view that provides access to only every
sdth value of a source
RandomAccessibleInterval. Its transformed origin is at the min
coordinate of the source Interval. This is effectively an integer
scaling and optional offset transformation. Localization calls to the
RandomAccess and Interval dimension calls to the
SubsampleIntervalView return 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 ;).SubsampleView.SubsampleRandomAccess| Modifier and Type | Field and Description |
|---|---|
protected long[] |
dimensions |
protected long[] |
max |
source, steps| Constructor and Description |
|---|
SubsampleIntervalView(RandomAccessibleInterval<T> source,
long... steps) |
SubsampleIntervalView(RandomAccessibleInterval<T> source,
long step) |
| Modifier and Type | Method and Description |
|---|---|
long |
dimension(int d)
Default implementation of
Dimensions.dimension(int). |
void |
dimensions(long[] dim)
Write the number of pixels in each dimension into long[].
|
long |
max(int d)
Get the maximum in dimension d.
|
void |
max(long[] m)
Write the maximum of each dimension into long[].
|
void |
max(Positionable m)
Sets a
Positionable to the maximum of this Interval |
long |
min(int d)
Get the minimum in dimension d.
|
void |
min(long[] min)
Write the minimum of each dimension into long[].
|
void |
min(Positionable min)
Sets a
Positionable to the minimum of this Interval |
void |
realMax(double[] m)
Write the maximum of each dimension into double[].
|
double |
realMax(int d)
Default implementation of
RealInterval.realMax(int). |
void |
realMax(RealPositionable m)
Sets a
RealPositionable to the maximum of this Interval |
void |
realMin(double[] min)
Write the minimum of each dimension into double[].
|
double |
realMin(int d)
Default implementation of
RealInterval.realMin(int). |
void |
realMin(RealPositionable min)
Sets a
RealPositionable to the minimum of this Interval |
getSource, getSteps, numDimensions, randomAccess, randomAccessclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAt, getAt, getAt, randomAccess, randomAccessmaxAsLongArray, maxAsPoint, minAsLongArray, minAsPointmaxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPointallPositive, allPositive, dimensions, dimensionsAsLongArray, dimensionsAsPoint, verify, verify, verifyAllPositive, verifyAllPositivenumDimensionspublic SubsampleIntervalView(RandomAccessibleInterval<T> source, long step)
public SubsampleIntervalView(RandomAccessibleInterval<T> source, long... steps)
public long min(int d)
Intervalpublic void min(long[] min)
Intervalpublic void min(Positionable min)
IntervalPositionable to the minimum of this Intervalpublic long max(int d)
Intervalpublic void max(long[] m)
Intervalpublic void max(Positionable m)
IntervalPositionable to the maximum of this Intervalpublic double realMin(int d)
IntervalRealInterval.realMin(int).realMin in interface IntervalrealMin in interface RealIntervald - dimensionpublic void realMin(double[] min)
RealIntervalrealMin in interface RealIntervalpublic void realMin(RealPositionable min)
RealIntervalRealPositionable to the minimum of this IntervalrealMin in interface RealIntervalpublic double realMax(int d)
IntervalRealInterval.realMax(int).realMax in interface IntervalrealMax in interface RealIntervald - dimensionpublic void realMax(double[] m)
RealIntervalrealMax in interface RealIntervalpublic void realMax(RealPositionable m)
RealIntervalRealPositionable to the maximum of this IntervalrealMax in interface RealIntervalpublic void dimensions(long[] dim)
Dimensionsdimensions in interface Dimensionspublic long dimension(int d)
IntervalDimensions.dimension(int).dimension in interface Dimensionsdimension in interface IntervalCopyright © 2015–2022 ImgLib2. All rights reserved.