Browse Source

Fix Bokeh normalization on .NET 10

pull/3161/head
James Jackson-South 3 weeks ago
parent
commit
368498133a
  1. 2
      src/ImageSharp/Processing/Processors/Convolution/Parameters/BokehBlurKernelDataProvider.cs

2
src/ImageSharp/Processing/Processors/Convolution/Parameters/BokehBlurKernelDataProvider.cs

@ -213,7 +213,7 @@ internal static class BokehBlurKernelDataProvider
// Complex64 stores each value as adjacent real and imaginary floats. Multiplying that flattened
// float span scales both parts independently, which is exactly complex multiplication by a real scalar.
Span<float> values = MemoryMarshal.Cast<Complex64, float>(kernelsRef);
Span<float> values = MemoryMarshal.Cast<Complex64, float>(kernelsRef.AsSpan());
TensorPrimitives_.Multiply(values, scalar, values);
}
}

Loading…
Cancel
Save