|
|
|
@ -1,4 +1,4 @@ |
|
|
|
// Copyright (c) Six Labors and contributors.
|
|
|
|
// Copyright (c) Six Labors and contributors.
|
|
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
|
|
|
|
using System.Numerics; |
|
|
|
@ -15,11 +15,6 @@ namespace SixLabors.ImageSharp.Processing.Processors.Convolution.Parameters |
|
|
|
/// </summary>
|
|
|
|
public readonly Vector4[] Parameters; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The scaling factor for the kernel values
|
|
|
|
/// </summary>
|
|
|
|
public readonly float Scale; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The kernel components to apply the bokeh blur effect
|
|
|
|
/// </summary>
|
|
|
|
@ -29,12 +24,10 @@ namespace SixLabors.ImageSharp.Processing.Processors.Convolution.Parameters |
|
|
|
/// Initializes a new instance of the <see cref="BokehBlurKernelData"/> struct.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="parameters">The kernel parameters</param>
|
|
|
|
/// <param name="scale">The kernel scale factor</param>
|
|
|
|
/// <param name="kernels">The complex kernel components</param>
|
|
|
|
public BokehBlurKernelData(Vector4[] parameters, float scale, Complex64[][] kernels) |
|
|
|
public BokehBlurKernelData(Vector4[] parameters, Complex64[][] kernels) |
|
|
|
{ |
|
|
|
this.Parameters = parameters; |
|
|
|
this.Scale = scale; |
|
|
|
this.Kernels = kernels; |
|
|
|
} |
|
|
|
} |
|
|
|
|