public abstract class GradientBaseAddSum extends GradientBase
GradientBase
but allows an arbitrary constant to be added to voxels storing the
gradient.
An out-of-bounds strategy of mirror is used for calculating the gradient for voxels lying at the boundary.
Constructor and Description |
---|
GradientBaseAddSum() |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean[] |
createAxisArray() |
Channel |
createFromChannel(Channel channelIn)
Creates a
Channel given the entity provided by the delegate. |
int |
getAddSum()
Added to all gradients (so we can store negative gradients)
|
void |
setAddSum(int addSum)
Added to all gradients (so we can store negative gradients)
|
convertToOutputType, getScaleFactor, isOutputShort, setOutputShort, setScaleFactor
get, getChannel, setChannel
getAsStack
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public Channel createFromChannel(Channel channelIn) throws ProvisionFailedException
ChannelProviderUnary
Channel
given the entity provided by the delegate.createFromChannel
in class ChannelProviderUnary
channelIn
- the entity provided by the delegate.Channel
that is returned by the provider.ProvisionFailedException
- if the provider cannot complete successfully.protected abstract boolean[] createAxisArray() throws ProvisionFailedException
ProvisionFailedException
public int getAddSum()
public void setAddSum(int addSum)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.