Class AbstractConvolution

java.lang.Object
net.algart.arrays.AbstractArrayProcessorWithContextSwitching
net.algart.matrices.linearfiltering.AbstractConvolution
All Implemented Interfaces:
Cloneable, ArrayProcessor, ArrayProcessorWithContextSwitching, Convolution
Direct Known Subclasses:
BasicConvolution

public abstract class AbstractConvolution extends AbstractArrayProcessorWithContextSwitching implements Convolution
  • Field Details

    • incrementForUnsigned

      protected final boolean incrementForUnsigned
    • incrementByHalfForInteger

      protected final boolean incrementByHalfForInteger
  • Constructor Details

    • AbstractConvolution

      protected AbstractConvolution(ArrayContext context, boolean incrementForUnsigned, boolean incrementByHalfForInteger)
      Creates an instance of this class with the given context.
      Parameters:
      context - the context used by this instance for all operations.
      incrementForUnsigned - if true, when the type of the convolution result is an unsigned number in terms of AlgART libraries — byte, short, char — it is automatically incremented by 128 (byte) or 32768 (short and char).
      incrementByHalfForInteger - if true, when the type of the convolution result is integer, the precise result is automatically increments by 0.5 before casting.
  • Method Details