Constructor and Description |
---|
TimeSeries(Stack frame)
Creates a
TimeSeries containing a single frame only. |
TimeSeries(java.util.stream.Stream<Stack> frames)
Creates a
TimeSeries from a stream of frames. |
Modifier and Type | Method and Description |
---|---|
boolean |
allChannelsHaveType(VoxelDataType voxelDataType)
Whether all
Channel s in all frames in the times-series have a particular voxel-data
type? |
Stack |
getFrame(int index)
Gets a frame in the time-series.
|
boolean |
isEmpty()
Whether the series contains no frames?
|
Iterator<Stack> |
iterator() |
int |
size()
The number of frames in the time-series.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public TimeSeries(Stack frame)
TimeSeries
containing a single frame only.frame
- the single frame.public TimeSeries(java.util.stream.Stream<Stack> frames)
TimeSeries
from a stream of frames.frames
- the frames.public Stack getFrame(int index)
index
- the index of the frame, beginning at 0.IndexOutOfBoundsException
- if no frame exists at index
.public boolean isEmpty()
public int size()
public boolean allChannelsHaveType(VoxelDataType voxelDataType)
Channel
s in all frames in the times-series have a particular voxel-data
type?voxelDataType
- the voxel data-type to match.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.