Package net.imglib2
Interface Interval
-
- All Superinterfaces:
Dimensions,EuclideanSpace,RealInterval
- All Known Subinterfaces:
Img<T>,IterableInterval<T>,NativeImg<T,A>,RandomAccessibleInterval<T>,SubIntervalIterable<T>
- All Known Implementing Classes:
AbstractCellImg,AbstractConvertedIterableInterval,AbstractConvertedIterableRandomAccessibleInterval,AbstractConvertedRandomAccessibleInterval,AbstractImg,AbstractInterval,AbstractListImg,AbstractLongListImg,AbstractNativeImg,AbstractWrappedInterval,ARGBScreenImage,ArrayImg,ArrayImgAWTScreenImage,BiConvertedIterableInterval,BiConvertedRandomAccessibleInterval,ByteAWTScreenImage,Cell,CellGrid.CellIntervals,CellImg,CompositeIntervalView,ConvertedIterableInterval,ConvertedRandomAccessibleInterval,DiscreteFrequencyDistribution,DoubleAWTScreenImage,FinalInterval,FloatAWTScreenImage,Grid.CellIntervals,Histogram1d,HistogramNd,ImgView,IntAWTScreenImage,IntervalIterator,IntervalView,IterableRandomAccessibleInterval,IterableTransformBuilder.IterableIntervalView,IterableTransformBuilder.Slice,IterableTransformBuilder.SubInterval,LazyCellImg,LazyCellImg.LazyCells,ListImg,LocalizingIntervalIterator,LocalizingZeroMinIntervalIterator,NtreeCursor,NtreeImg,OffsetableIntervalIterator,OffsetableLocalizingIntervalIterator,PlanarImg,PointSampleList,RandomAccessibleIntervalCursor,ShortAWTScreenImage,StackView,SubsampleIntervalView,UnsignedByteAWTScreenImage,UnsignedIntAWTScreenImage,UnsignedShortAWTScreenImage,WriteConvertedIterableInterval,WriteConvertedIterableRandomAccessibleInterval,WriteConvertedRandomAccessibleInterval,ZeroMinIntervalIterator
public interface Interval extends RealInterval, Dimensions
{x∈Zn|mind≤ xd≤maxd;d∈{0… n-1}}
An
Intervalover the discrete source domain. Note that this does not imply that for all coordinates in theIntervalfunction values exist or can be generated. It only defines where the minimum and maximum source coordinates are. E.g. anIterableIntervalhas a limited number of values and a source coordinate for each. By that, minimum and maximum are defined but theIntervaldoes 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 longdimension(int d)Default implementation ofDimensions.dimension(int).longmax(int d)Get the maximum in dimension d.default voidmax(long[] max)Write the maximum of each dimension into long[].default voidmax(Positionable max)Sets aPositionableto the maximum of thisIntervaldefault long[]maxAsLongArray()Allocates a new long array with the maximum of this Interval.default PointmaxAsPoint()Allocates a newPointwith the maximum of this Interval.longmin(int d)Get the minimum in dimension d.default voidmin(long[] min)Write the minimum of each dimension into long[].default voidmin(Positionable min)Sets aPositionableto the minimum of thisIntervaldefault long[]minAsLongArray()Allocates a new long array with the minimum of this Interval.default PointminAsPoint()Allocates a newPointwith the maximum of this Interval.default doublerealMax(int d)Default implementation ofRealInterval.realMax(int).default doublerealMin(int d)Default implementation ofRealInterval.realMin(int).-
Methods inherited from interface net.imglib2.Dimensions
dimensions, dimensions, dimensionsAsLongArray, dimensionsAsPoint
-
Methods inherited from interface net.imglib2.EuclideanSpace
numDimensions
-
Methods inherited from interface net.imglib2.RealInterval
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMax, realMin, realMin
-
-
-
-
Method Detail
-
min
long min(int d)
Get the minimum in dimension d.- Parameters:
d- dimension- Returns:
- minimum in dimension d.
-
min
default void min(long[] min)
Write the minimum of each dimension into long[].- Parameters:
min-
-
min
default void min(Positionable min)
Sets aPositionableto the minimum of thisInterval- Parameters:
min-
-
max
long max(int d)
Get the maximum in dimension d.- Parameters:
d- dimension- Returns:
- maximum in dimension d.
-
max
default void max(long[] max)
Write the maximum of each dimension into long[].- Parameters:
max-
-
max
default void max(Positionable max)
Sets aPositionableto the maximum of thisInterval- Parameters:
max-
-
realMin
default double realMin(int d)
Default implementation ofRealInterval.realMin(int).- Specified by:
realMinin interfaceRealInterval- Parameters:
d- dimension- Returns:
- minimum in dimension d.
-
realMax
default double realMax(int d)
Default implementation ofRealInterval.realMax(int).- Specified by:
realMaxin interfaceRealInterval- Parameters:
d- dimension- Returns:
- maximum in dimension d.
-
dimension
default long dimension(int d)
Default implementation ofDimensions.dimension(int).- Specified by:
dimensionin interfaceDimensions
-
minAsLongArray
default long[] minAsLongArray()
Allocates a new long array with the minimum of this Interval. 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 withmin(long[]).- Returns:
- the min
-
minAsPoint
default Point minAsPoint()
Allocates a newPointwith the maximum of this Interval. Please note that his method allocates a newPointeach time which introduces notable overhead in both compute and memory. If you query it frequently, you should allocate a dedicatedPointfirst and reuse it withmin(Positionable).- Returns:
- the min
-
maxAsLongArray
default long[] maxAsLongArray()
Allocates a new long array with the maximum of this Interval. 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 withmax(long[]).- Returns:
- the max
-
maxAsPoint
default Point maxAsPoint()
Allocates a newPointwith the maximum of this Interval. Please note that his method allocates a newPointeach time which introduces notable overhead in both compute and memory. If you query it frequently, you should allocate a dedicatedPointfirst and reuse it withmax(Positionable).- Returns:
- the max
-
-