public class ChannelSource extends Object
Channel
s from a NamedStacks
, optionally resizing.
Checks may be applied to make sure all channels have the same-type
Constructor and Description |
---|
ChannelSource(NamedStacks stackStore,
ConsistentChannelChecker channelChecker,
Optional<SizeXY> resizeTo,
VoxelsResizer resizer) |
Modifier and Type | Method and Description |
---|---|
Channel |
extractChannel(Stack stack,
boolean checkType,
int index) |
Channel |
extractChannel(String stackName,
boolean checkType)
|
Channel |
extractChannel(String stackName,
boolean checkType,
int index) |
NamedStacks |
getStackStore()
|
public ChannelSource(NamedStacks stackStore, ConsistentChannelChecker channelChecker, Optional<SizeXY> resizeTo, VoxelsResizer resizer)
public Channel extractChannel(String stackName, boolean checkType) throws OperationFailedException
stackName
- the name of the Stack
which contains the channel.checkType
- if true, a call occurs to channelChecker
to ensure all Channel
s have consistent voxel data-type.Channel
, reused from stackStore
.OperationFailedException
- if the Stack
is not single-channeled, or if non
consistent voxel data-type occurs.public Channel extractChannel(String stackName, boolean checkType, int index) throws OperationFailedException
OperationFailedException
public Channel extractChannel(Stack stack, boolean checkType, int index) throws OperationFailedException
OperationFailedException
public NamedStacks getStackStore()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.