Skip to content

Instantly share code, notes, and snippets.

Last active Nov 28, 2019
What would you like to do?
Schlieren Moire Pattern
# before running this code, first run:
# git checkout utils
from utils.imutil import *
import numpy as np
stride = 1
resolution = [2160, 3840]
img = np.zeros(resolution)
for i in range(stride):
img[i::2*stride] = 255
imwrite(f'{resolution[1]}x{resolution[0]}.png', img)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment