Constructor and Description |
---|
StackNotUniformSized()
Creates an empty with no channels.
|
StackNotUniformSized(Channel channel)
Creates from a single
Channel . |
StackNotUniformSized(java.util.stream.Stream<Channel> channelStream)
Creates from a stream of
Channel s. |
Modifier and Type | Method and Description |
---|---|
void |
addChannel(Channel channel)
Appends a channel to the stack, as the new final-most channel position-wise.
|
StackNotUniformSized |
duplicate()
A deep-copy.
|
StackNotUniformSized |
extractSlice(int sliceIndex)
Creates a new
StackNotUniformSized containing only one particular slice for each
respective channel. |
Channel |
getChannel(int index)
Returns the channel at a particular position in the stack.
|
int |
getNumberChannels()
The number of channels in the
Stack . |
boolean |
isAnyChannel3D()
Is at least one channel 3D?
|
boolean |
isUniformlySized()
Do all channels have identical dimensions?
|
boolean |
isUniformTyped()
Do all
Channel s in the stack have identical voxel data-type? |
Iterator<Channel> |
iterator() |
StackNotUniformSized |
projectMax()
Creates a Maximum
Intensity Projection of each channel.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public StackNotUniformSized()
public StackNotUniformSized(java.util.stream.Stream<Channel> channelStream)
Channel
s.channelStream
- the stream of channelspublic StackNotUniformSized extractSlice(int sliceIndex)
StackNotUniformSized
containing only one particular slice for each
respective channel.
The existing Voxels
are reused, without creating new buffers.
sliceIndex
- the index of the slice to extract (index in z-dimension).StackNotUniformSized
consisting of the slice at sliceIndex
only, for each respective channel.public StackNotUniformSized projectMax()
Note that if the channels do not need projections, the existing Channel
is reused
in the newly created Stack
. But if a projection is needed, it is always freshly
created as a new channel.
public boolean isAnyChannel3D()
public final void addChannel(Channel channel)
channel
- the channel.public final Channel getChannel(int index)
index
- the index (zero-indexed).IndexOutOfBoundsException
- if the index is out of range (index < 0 || index >=
size()
)public final int getNumberChannels()
Stack
.public boolean isUniformlySized()
Dimensions
of all channels are identical.public boolean isUniformTyped()
Channel
s in the stack have identical voxel data-type?public StackNotUniformSized duplicate()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.