Skip to content

Commit

Permalink
Update src/sing/utility.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Hiroshiba <[email protected]>
  • Loading branch information
sigprogramming and Hiroshiba authored Apr 24, 2024
1 parent 4c6f4fd commit 08341ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sing/utility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function ceilToOdd(value: number) {
return 1 + Math.ceil((value - 1) / 2) * 2;
}

export function createGaussianKernel(sigma: number) {
function createGaussianKernel(sigma: number) {
const kernelSize = ceilToOdd(sigma * 3);
const center = Math.floor(kernelSize / 2);
let kernel: number[] = [];
Expand Down

0 comments on commit 08341ac

Please sign in to comment.