convolution-2d-animation

Programmatically create your own videos of a two dimensional convolution operation

Pure Nim score 16/100 · last commit 2022-06-12 · 8 stars · tests present · no docs generated

Summary

Latest Version Unknown
License Unknown
CI Status Failing
Stars 8
Forks 9
Open Issues 0
Last Commit 2022-06-12
Downloads 0
Last Indexed 2026-07-24 13:03

Installation

nimble install convolution-2d-animation
choosenim install convolution-2d-animation
git clone https://gitlab.com/brohrer/convolution-2d-animation

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
convolution-2d-animation - - - - - - -

README

Animations of convolution in two dimensions (images)

This project lets you programmatically create your own videos of a two dimensional convolution operation.

An example of the convolution animation

Install

git clone git@gitlab.com:brohrer/convolution-2d-animation.git

Dependencies

git clone https://gitlab.com/brohrer/lodgepole.git
python3 -m pip install -e lodgepole

Also, install FFMPEG

Test

cd convolution-2d-animation
python3 conv_two_d_anim.py

Use

from conv_two_d_anim import render
render(image, kernel)

where image and kernel are 2D NumPy arrays.

To make a one-image summary of a convolution:

from conv_two_d import render
render(image, kernel)

example.png

Gallery

gallery_1.gif

gallery_2.gif

gallery_3.gif

gallery_4.gif

gallery_1.png

gallery_2.png

gallery_3.png

gallery_4.png