Class ConvolutionFilterOptions

Class ConvolutionFilterOptions

Namespace: Aspose.Imaging.ImageFilters.FilterOptions
Assembly: Aspose.Imaging.dll (25.7.0)

The convolution filter options.

public class ConvolutionFilterOptions : FilterOptionsBase
    {
        public float[,] Kernel { get; set; }
        public int PadMode { get; set; }
        public bool Clamp { get; set; }
        public int BorderValue { get; set; }
        public int MaxKernelSize { get; set; }
    }

Inheritance

object FilterOptionsBase ConvolutionFilterOptions

Derived

GaussianBlurFilterOptions

Inherited Members

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

ConvolutionFilterOptions(double[,], double, int)

Initializes a new instance of the Aspose.Imaging.ImageFilters.FilterOptions.ConvolutionFilterOptions class.

public ConvolutionFilterOptions(double[,] kernel, double factor = 1, int bias = 0)
   {
   }

Parameters

kernel double [,]

The convolution kernel for X-axis direction.

factor double

The factor.

bias int

The bias value.

Exceptions

ArgumentNullException

ArgumentNullException

ConvolutionFilterOptions()

Initializes a new instance of the Aspose.Imaging.ImageFilters.FilterOptions.ConvolutionFilterOptions class.

protected ConvolutionFilterOptions()
   {
   }

Fields

MinSize

The min kernel size.

protected const byte MinSize = 3;
In this case, there's no need for reformatting since the input already follows standard C# conventions for the given snippet. However, if the provided code were more complex, I would format it according to your requirements (proper indentation, spacing, readability improvements) while strictly adhering to the rules you specified.

Field Value

byte

Properties

Bias

Gets or sets the bias.

public int Bias
   {
      get;
      set;
   }

Property Value

int

Factor

Gets or sets the factor.

public double Factor
    {
        get;
        set;
    }

Property Value

double

Kernel

Gets the kernel.

public virtual double[,] Kernel
{
    get;
}

Property Value

double [,]

 English