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 Object
implements RealInterval
Convenient base class for
IterableRealIntervals
,
etc that forward the RealInterval
interface to, for example, their
source accessible.- Author:
- Tobias Pietzsch
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
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 Details
-
sourceInterval
-
-
Constructor Details
-
AbstractWrappedRealInterval
-
-
Method Details
-
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
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
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
-