Package net.imglib2
Interface RealInterval
-
- All Superinterfaces:
EuclideanSpace
- All Known Subinterfaces:
Img<T>,Interval,IterableInterval<T>,IterableRealInterval<T>,NativeImg<T,A>,RandomAccessibleInterval<T>,RealRandomAccessibleRealInterval<T>,SubIntervalIterable<T>
- All Known Implementing Classes:
AbstractCellImg,AbstractConvertedIterableInterval,AbstractConvertedIterableRandomAccessibleInterval,AbstractConvertedIterableRealInterval,AbstractConvertedRandomAccessibleInterval,AbstractImg,AbstractInterval,AbstractListImg,AbstractLongListImg,AbstractNativeImg,AbstractRealInterval,AbstractWrappedInterval,AbstractWrappedRealInterval,ARGBScreenImage,ArrayImg,ArrayImgAWTScreenImage,BiConvertedIterableInterval,BiConvertedIterableRealInterval,BiConvertedRandomAccessibleInterval,BiConvertedRealRandomAccessibleRealInterval,ByteAWTScreenImage,Cell,CellGrid.CellIntervals,CellImg,CompositeIntervalView,ConvertedIterableInterval,ConvertedIterableRealInterval,ConvertedRandomAccessibleInterval,ConvertedRealRandomAccessibleRealInterval,DiscreteFrequencyDistribution,DoubleAWTScreenImage,FinalInterval,FinalRealInterval,FloatAWTScreenImage,Grid.CellIntervals,Histogram1d,HistogramNd,ImgView,IntAWTScreenImage,IntervalIterator,IntervalView,IterableRandomAccessibleInterval,IterableTransformBuilder.IterableIntervalView,IterableTransformBuilder.Slice,IterableTransformBuilder.SubInterval,KDTree,LazyCellImg,LazyCellImg.LazyCells,ListImg,LocalizingIntervalIterator,LocalizingRealIntervalIterator,LocalizingZeroMinIntervalIterator,NtreeCursor,NtreeImg,OffsetableIntervalIterator,OffsetableLocalizingIntervalIterator,PlanarImg,PointSampleList,RandomAccessibleIntervalCursor,RealPointSampleList,ShortAWTScreenImage,StackView,SubsampleIntervalView,UnsignedByteAWTScreenImage,UnsignedIntAWTScreenImage,UnsignedShortAWTScreenImage,WriteConvertedIterableInterval,WriteConvertedIterableRandomAccessibleInterval,WriteConvertedIterableRealInterval,WriteConvertedRandomAccessibleInterval,ZeroMinIntervalIterator
public interface RealInterval extends EuclideanSpace
{x∈Rn|mind≤ xd≤maxd;d∈{0… n-1}}
AnRealIntervalover the real source domain. Note that this does not imply that for all coordinates in theRealIntervalfunction values exist or can be generated. It only defines where the minimum and maximum source coordinates are. E.g. anIterableRealIntervalhas a limited number of values and a source coordinate for each. By that, minimum and maximum are defined but theRealIntervaldoes not define a value for all coordinates in between.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default double[]maxAsDoubleArray()Allocates a new double array with the maximum of this RealInterval.default RealPointmaxAsRealPoint()Allocates a newRealPointwith the maximum of this RealInterval.default double[]minAsDoubleArray()Allocates a new double array with the minimum of this RealInterval.default RealPointminAsRealPoint()Allocates a newRealPointwith the minimum of this RealInterval.default voidrealMax(double[] max)Write the maximum of each dimension into double[].doublerealMax(int d)Get the maximum in dimension d.default voidrealMax(RealPositionable max)Sets aRealPositionableto the maximum of thisIntervaldefault voidrealMin(double[] min)Write the minimum of each dimension into double[].doublerealMin(int d)Get the minimum in dimension d.default voidrealMin(RealPositionable min)Sets aRealPositionableto the minimum of thisInterval-
Methods inherited from interface net.imglib2.EuclideanSpace
numDimensions
-
-
-
-
Method Detail
-
realMin
double realMin(int d)
Get the minimum in dimension d.- Parameters:
d- dimension- Returns:
- minimum in dimension d.
-
realMin
default void realMin(double[] min)
Write the minimum of each dimension into double[].- Parameters:
min-
-
realMin
default void realMin(RealPositionable min)
Sets aRealPositionableto the minimum of thisInterval- Parameters:
min-
-
realMax
double realMax(int d)
Get the maximum in dimension d.- Parameters:
d- dimension- Returns:
- maximum in dimension d.
-
realMax
default void realMax(double[] max)
Write the maximum of each dimension into double[].- Parameters:
max-
-
realMax
default void realMax(RealPositionable max)
Sets aRealPositionableto the maximum of thisInterval- Parameters:
max-
-
minAsDoubleArray
default double[] minAsDoubleArray()
Allocates a new double array with the minimum of this RealInterval. Please note that his method allocates a new array each time which introduces notable overhead in both compute and memory. If you query it frequently, you should allocate a dedicated array first and reuse it withrealMin(double[]).- Returns:
- the min
-
minAsRealPoint
default RealPoint minAsRealPoint()
Allocates a newRealPointwith the minimum of this RealInterval. Please note that his method allocates a newRealPointeach time which introduces notable overhead in both compute and memory. If you query it frequently, you should allocate a dedicatedRealPointfirst and reuse it withrealMin(RealPositionable).- Returns:
- the min
-
maxAsDoubleArray
default double[] maxAsDoubleArray()
Allocates a new double array with the maximum of this RealInterval. Please note that his method allocates a new array each time which introduces notable overhead in both compute and memory. If you query it frequently, you should allocate a dedicated array first and reuse it withrealMax(double[]).- Returns:
- the max
-
maxAsRealPoint
default RealPoint maxAsRealPoint()
Allocates a newRealPointwith the maximum of this RealInterval. Please note that his method allocates a newRealPointeach time which introduces notable overhead in both compute and memory. If you query it frequently, you should allocate a dedicatedRealPointfirst and reuse it withrealMax(RealPositionable).- Returns:
- the max
-
-