Remove redundant

This commit is contained in:
Manav Rathi 2024-05-18 20:16:00 +05:30
parent 8975546294
commit fe8ff0a12a
No known key found for this signature in database

View file

@ -503,7 +503,7 @@ const applyLaplacian = (
image: number[][],
direction: FaceDirection,
): number[][] => {
const paddedImage: number[][] = padImage(image, direction);
const paddedImage = padImage(image, direction);
const numRows = paddedImage.length - 2;
const numCols = paddedImage[0].length - 2;
@ -513,7 +513,7 @@ const applyLaplacian = (
);
// Define the Laplacian kernel.
const kernel: number[][] = [
const kernel = [
[0, 1, 0],
[1, -4, 1],
[0, 1, 0],