Last active
November 16, 2019 03:09
-
-
Save AlphaAtlas/ff15d799d367cee18b5e8347506514b8 to your computer and use it in GitHub Desktop.
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
import mvsfunc as mvs | |
import vapoursynth as vs | |
from vapoursynth as core | |
import mvsfunc as mvf | |
from glob import glob | |
smallimagenames = glob.glob("some path to glob") | |
bigimagenames = glob.glob("some other path to glob") | |
if len(input1) != len(input2): | |
raise Exception("Input folders don't have the same number of images!") | |
smallimages = core.imwri.Read(smallimagenames, mismatch = False, alpha = True) | |
bigimages = core.imwri.Read(bigimagenames, mismatch = False, alpha = True) | |
smallimages = core.resize.Point(smallimages, width = bigimages.width, height = bigimages.height) | |
clip = mvf.Preview([smallimages, bigimages, smallalpha, bigalpha]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment