This project visualizes the process of convolution, commonly used in image processing and neural networks, through an interactive animation built with p5.js.
- Interactive convolution animation
- Adjustable parameters (kernel, stride, etc.)
- Visualizes how convolution works on an input image
- Built with p5.js for easy customization and extension
Open index.html in your browser to view and interact with the animation.
convolution_animation/
├── index.html # Main HTML file
├── sketch.js # p5.js sketch with animation logic
├── style.css # Custom styles
├── jsconfig.json # JS config for editor support
├── assets/
│ └── input.png # Example input image
├── libraries/
│ ├── p5.min.js # p5.js library
│ └── p5.sound.min.js# p5.js sound library (if needed)
└── README.md # Project documentation
- Clone or download this repository.
- Open
index.htmlin your web browser. - Interact with the animation and explore convolution!
- p5.js (included in
libraries/)
- Replace
assets/input.pngwith your own image to see how convolution works on different inputs. - Modify
sketch.jsto experiment with different kernels or animation styles.
MIT License