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)
Get the number of pixels in a given dimension d.
|
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)
Get the maximum in dimension d.
|
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)
Get the minimum in dimension d.
|
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, waitrandomAccess, randomAccessnumDimensionspublic 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)
RealIntervalrealMin 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)
RealIntervalrealMax 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)
Dimensionsdimension in interface DimensionsCopyright © 2009–2017 ImgLib2. All rights reserved.