""" from docopt import docopt from PIL import Image from MTCore import MTCore if __name__ == '__main__': argv = docopt(__doc__, version='1.4') # print(argv) kwargs = {} if argv['--gui']: from GUI import MainWindow MainWindow.vp_start_gui() else: whiteImg = Image.open(argv['WHITEIMG']) blackImg = Image.open(argv['BLACKIMG']) if argv['--scale']: whiteScale, blackScale = argv['--scale'].split('-') whiteImg = whiteImg.resize( (round(x * float(whiteScale)) for x in whiteImg.size), Image.ANTIALIAS) blackImg = blackImg.resize( (round(x * float(blackScale)) for x in blackImg.size), Image.ANTIALIAS) if argv['--light']: light = argv['--light'].split('-') kwargs['whiteLight'] = float(light[0])