Пример #1
0
def overlap_patches_synthesizer(args):
    print "Using Overlap Patches Synthesizer"
    default_texture = Texture()
    default_texture.load_texture(args.input_file)
    patches = default_texture.create_patches(args.patch_height,
                                             args.patch_width,
                                             overlap=args.overlap_percent)
    new_texture = Texture.create_overlap_tex_from_patches(patches,
                                                          args.height,
                                                          args.width)
    new_texture.save_texture(args.output_file)
    return