All Implemented Interfaces:
Provider<Channel>, ProviderAsStack

public class GradientForAxis extends GradientBaseAddSum
Extracts the gradient in the direction of a particular axis (identified by an index)
Author:
Owen Feehan
  • Constructor Details

    • GradientForAxis

      public GradientForAxis()
  • Method Details

    • createAxisArray

      protected boolean[] createAxisArray() throws ProvisionFailedException
      Description copied from class: GradientBaseAddSum
      Creates an array of booleans indicating which axes to calculate the gradient for.
      Specified by:
      createAxisArray in class GradientBaseAddSum
      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

      public String getAxis()
      Which axis? X=0, Y=1, Z=2
    • setAxis

      public void setAxis(String axis)
      Which axis? X=0, Y=1, Z=2