public class EnergyStackWithoutParameters extends Object
The stack can have 0 channels, in which case, explicit dimensions must be set.
Constructor and Description |
---|
EnergyStackWithoutParameters(Channel channel)
Create a energy-stack comprised of a single channel
|
EnergyStackWithoutParameters(Dimensions dimensions)
Create a energy-stack with no channels - but with associated dimensions.
|
EnergyStackWithoutParameters(Stack stack)
Create a energy-stack comprised of all channels from a stack
|
Modifier and Type | Method and Description |
---|---|
Stack |
asStack()
Derive a
Stack representation containing the identical channels to the current
instance. |
Dimensions |
dimensions()
The dimensions of all channels in the stack.
|
Extent |
extent()
The width and height and depth of all
Channel s in the stack. |
EnergyStackWithoutParameters |
extractSlice(int z)
Extract a particular z-slice from the
EnergyStackWithoutParameters as a new stack. |
Channel |
getChannel(int index)
Returns the channel at a particular position in the stack.
|
int |
getNumberChannels()
The number of channels in the stack.
|
public EnergyStackWithoutParameters(Channel channel)
channel
- public EnergyStackWithoutParameters(Stack stack)
stack
- the stack which is reused as the energy-stack (i.e. it is not duplicated)public EnergyStackWithoutParameters(Dimensions dimensions)
dimensions
- the dimensions.public final int getNumberChannels()
public Dimensions dimensions()
public Extent extent()
Channel
s in the stack.public final Channel getChannel(int index)
index
- the index (zero-indexed).IndexOutOfBoundsException
- if the index is out of range (index < 0 || index >=
size()
)public Stack asStack()
Stack
representation containing the identical channels to the current
instance.public EnergyStackWithoutParameters extractSlice(int z) throws OperationFailedException
EnergyStackWithoutParameters
as a new stack.z
- the index in the Z-dimension of the slice to extract.EnergyStackWithoutParameters
but reusing the
existing voxels.OperationFailedException
- if no channels exist in the energy-stack.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.