public class EnergyStack extends Object
EnergyStackWithoutParameters
with associated parameters in a Dictionary
.Constructor and Description |
---|
EnergyStack(Channel channel)
Create from a single
Channel . |
EnergyStack(Dimensions dimensions)
Create a new stack of
Dimensions with zero-voxel values, without any additional
parameters. |
EnergyStack(EnergyStackWithoutParameters energyStack)
Create from a
EnergyStackWithoutParameters without any additional parameters. |
EnergyStack(EnergyStackWithoutParameters delegate,
Dictionary parameters) |
EnergyStack(Stack stack)
Create from a
EnergyStack without any additional parameters. |
EnergyStack(Stack stack,
Dictionary dictionary)
Create from a
Stack with associated parameters in a Dictionary . |
Modifier and Type | Method and Description |
---|---|
Stack |
asStack()
Derive a
Stack representation containing the identical channels to the current
instance. |
EnergyStack |
copyChangeDictionary(Dictionary dictionaryToAssign)
Makes a copy of the
EnergyStack but assigns a new Dictionary . |
Dimensions |
dimensions()
The image-dimensions associated with the energy-stack.
|
Extent |
extent()
The width and height and depth of all
Channel s in the stack. |
EnergyStack |
extractSlice(int z)
Extract a particular z-slice from the
EnergyStack 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.
|
Dictionary |
getParameters()
The associated parameters.
|
boolean |
hasOneSlice()
Does exactly one z-slice exist in the energy stack?
|
Optional<Resolution> |
resolution()
The image-resolution associated with the energy-stack.
|
void |
setParameters(Dictionary parameters)
The associated parameters.
|
EnergyStackWithoutParameters |
withoutParameters()
The energy-stack without associated parameters.
|
public EnergyStack(Channel channel)
Channel
.channel
- the channel.public EnergyStack(EnergyStackWithoutParameters energyStack)
EnergyStackWithoutParameters
without any additional parameters.energyStack
- the energy-stack.public EnergyStack(Stack stack, Dictionary dictionary)
Stack
with associated parameters in a Dictionary
.stack
- the stack.dictionary
- the associated parameters.public EnergyStack(Stack stack)
EnergyStack
without any additional parameters.stack
- the stack.public EnergyStack(Dimensions dimensions)
Dimensions
with zero-voxel values, without any additional
parameters.dimensions
- the dimensions.public EnergyStack(EnergyStackWithoutParameters delegate, Dictionary parameters)
public EnergyStack extractSlice(int z) throws OperationFailedException
EnergyStack
as a new stack.z
- the index in the Z-dimension of the slice to extract.EnergyStack
but reusing the existing voxels.OperationFailedException
- if no channels exist in the energy-stack.public boolean hasOneSlice()
public Dimensions dimensions()
public Optional<Resolution> resolution()
public EnergyStack copyChangeDictionary(Dictionary dictionaryToAssign)
EnergyStack
but assigns a new Dictionary
.dictionaryToAssign
- the dictionary.dictionaryToAssign
.public 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 Extent extent()
Channel
s in the stack.public EnergyStackWithoutParameters withoutParameters()
public final int getNumberChannels()
public Dictionary getParameters()
public void setParameters(Dictionary parameters)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.