Package net.imglib2
Class AbstractWrappedRealInterval<I extends RealInterval>
- java.lang.Object
-
- net.imglib2.AbstractWrappedRealInterval<I>
-
- All Implemented Interfaces:
EuclideanSpace
,RealInterval
- Direct Known Subclasses:
AbstractWrappedInterval
,ConvertedRealRandomAccessibleRealInterval
public abstract class AbstractWrappedRealInterval<I extends RealInterval> extends java.lang.Object implements RealInterval
Convenient base class forIterableRealIntervals
, etc that forward theRealInterval
interface to, for example, their source accessible.- Author:
- Tobias Pietzsch
-
-
Field Summary
Fields Modifier and Type Field Description protected I
sourceInterval
-
Constructor Summary
Constructors Constructor Description AbstractWrappedRealInterval(I source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description I
getSource()
int
numDimensions()
Gets the space's number of dimensions.void
realMax(double[] max)
Write the maximum of each dimension into double[].double
realMax(int d)
Get the maximum in dimension d.void
realMax(RealPositionable max)
Sets aRealPositionable
to the maximum of thisInterval
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 aRealPositionable
to the minimum of thisInterval
-
-
-
Field Detail
-
sourceInterval
protected final I extends RealInterval sourceInterval
-
-
Constructor Detail
-
AbstractWrappedRealInterval
public AbstractWrappedRealInterval(I source)
-
-
Method Detail
-
realMin
public double realMin(int d)
Description copied from interface:RealInterval
Get the minimum in dimension d.- Specified by:
realMin
in interfaceRealInterval
- Parameters:
d
- dimension- Returns:
- minimum in dimension d.
-
realMin
public void realMin(double[] min)
Description copied from interface:RealInterval
Write the minimum of each dimension into double[].- Specified by:
realMin
in interfaceRealInterval
-
realMin
public void realMin(RealPositionable min)
Description copied from interface:RealInterval
Sets aRealPositionable
to the minimum of thisInterval
- Specified by:
realMin
in interfaceRealInterval
-
realMax
public double realMax(int d)
Description copied from interface:RealInterval
Get the maximum in dimension d.- Specified by:
realMax
in interfaceRealInterval
- Parameters:
d
- dimension- Returns:
- maximum in dimension d.
-
realMax
public void realMax(double[] max)
Description copied from interface:RealInterval
Write the maximum of each dimension into double[].- Specified by:
realMax
in interfaceRealInterval
-
realMax
public void realMax(RealPositionable max)
Description copied from interface:RealInterval
Sets aRealPositionable
to the maximum of thisInterval
- Specified by:
realMax
in interfaceRealInterval
-
numDimensions
public int numDimensions()
Description copied from interface:EuclideanSpace
Gets the space's number of dimensions.- Specified by:
numDimensions
in interfaceEuclideanSpace
-
getSource
public I getSource()
-
-