Class GradientForAxis
- All Implemented Interfaces:
Provider<Channel>,ProviderAsStack
Extracts the gradient in the direction of a particular axis (identified by an index)
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean[]Creates an array of booleans indicating which axes to calculate the gradient for.getAxis()Which axis?voidWhich axis?Methods inherited from class org.anchoranalysis.plugin.image.bean.channel.provider.gradient.GradientBaseAddSum
createFromChannel, getAddSum, setAddSumMethods inherited from class org.anchoranalysis.plugin.image.bean.channel.provider.gradient.GradientBase
convertToOutputType, getScaleFactor, isOutputShort, setOutputShort, setScaleFactorMethods inherited from class org.anchoranalysis.image.bean.provider.ChannelProviderUnary
get, getChannel, setChannelMethods inherited from class org.anchoranalysis.image.bean.provider.ChannelProvider
getAsStackMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitializationMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
GradientForAxis
public GradientForAxis()
-
-
Method Details
-
createAxisArray
Description copied from class:GradientBaseAddSumCreates an array of booleans indicating which axes to calculate the gradient for.- Specified by:
createAxisArrayin classGradientBaseAddSum- Returns:
- a boolean array where true indicates the gradient should be calculated for that axis
- Throws:
ProvisionFailedException- if there's an error creating the axis array
-
getAxis
Which axis? X=0, Y=1, Z=2 -
setAxis
Which axis? X=0, Y=1, Z=2
-