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, randomAccess
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAt, getAt, getAt, randomAccess, randomAccess
maxAsLongArray, maxAsPoint, minAsLongArray, minAsPoint
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint
allPositive, allPositive, dimensions, dimensionsAsLongArray, dimensionsAsPoint, verify, verify, verifyAllPositive, verifyAllPositive
numDimensions
public SubsampleIntervalView(RandomAccessibleInterval<T> source, long step)
public SubsampleIntervalView(RandomAccessibleInterval<T> source, long... steps)
public long min(int d)
Interval
public void min(long[] min)
Interval
public void min(Positionable min)
Interval
Positionable
to the minimum of this Interval
public long max(int d)
Interval
public void max(long[] m)
Interval
public void max(Positionable m)
Interval
Positionable
to the maximum of this Interval
public double realMin(int d)
Interval
RealInterval.realMin(int)
.realMin
in interface Interval
realMin
in interface RealInterval
d
- dimensionpublic void realMin(double[] min)
RealInterval
realMin
in interface RealInterval
public void realMin(RealPositionable min)
RealInterval
RealPositionable
to the minimum of this Interval
realMin
in interface RealInterval
public double realMax(int d)
Interval
RealInterval.realMax(int)
.realMax
in interface Interval
realMax
in interface RealInterval
d
- dimensionpublic void realMax(double[] m)
RealInterval
realMax
in interface RealInterval
public void realMax(RealPositionable m)
RealInterval
RealPositionable
to the maximum of this Interval
realMax
in interface RealInterval
public void dimensions(long[] dim)
Dimensions
dimensions
in interface Dimensions
public long dimension(int d)
Interval
Dimensions.dimension(int)
.dimension
in interface Dimensions
dimension
in interface Interval
Copyright © 2015–2022 ImgLib2. All rights reserved.