All Implemented Interfaces:
Provider<Channel>, ProviderAsStack

public class SubtractMean extends UnaryWithMaskBase
Subtracts the mean intensity (of the entire channel or a masked portion thereof) from every voxel.

This class extends UnaryWithMaskBase to perform mean subtraction on a channel, optionally restricted to a masked region.

Author:
Owen Feehan
  • Constructor Details

    • SubtractMean

      public SubtractMean()
  • Method Details

    • createFromMaskedChannel

      protected Channel createFromMaskedChannel(Channel channel, Mask mask)
      Description copied from class: UnaryWithMaskBase
      Creates a new Channel from the input channel and mask.
      Specified by:
      createFromMaskedChannel in class UnaryWithMaskBase
      Parameters:
      channel - the input Channel
      mask - the Mask to apply to the channel
      Returns:
      a new Channel created from the input channel and mask
    • isSubtractFromMaskOnly

      public boolean isSubtractFromMaskOnly()
      Whether to subtract the mean only from voxels within the mask.

      If true, only voxels within the mask are modified. If false, all voxels in the channel are modified.

    • setSubtractFromMaskOnly

      public void setSubtractFromMaskOnly(boolean subtractFromMaskOnly)
      Whether to subtract the mean only from voxels within the mask.

      If true, only voxels within the mask are modified. If false, all voxels in the channel are modified.