Last active
November 28, 2019 22:04
-
-
Save kylemcdonald/fcc3135ca1823fb0f5fb56675389219f to your computer and use it in GitHub Desktop.
Schlieren Moire Pattern
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# before running this code, first run: | |
# git checkout https://github.com/kylemcdonald/python-utils 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