src/processing/gaussian-blur.ts
Function generateKernel
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function generateKernel(sigma: number, kernelSize: number): number[] {
// sigma must be a positive number.
// kernelSize must be an odd positive integer smaller than 999.
const sampleCount = 1000.0;