Skip to content
Snippets Groups Projects
Commit 4a20a262 authored by cramakri's avatar cramakri
Browse files

LMS-2472 Added script to generate an image series

SVN: 22734
parent 4ee77e17
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python
"""
Generate an image series.
"""
import imagegen
import os
import shutil
def recreateDir(dir):
if os.path.exists(dir):
shutil.rmtree(dir)
os.mkdir(dir)
recreateDir("SERIES")
config = imagegen.ImageGeneratorConfig()
config.time_points = range(1, 101)
# Alternative Configurations
#config.depth_points = [ 3, 6, 9 ]
#config.is_split = True
generator = imagegen.GenericImageGenerator(config)
generator.generate_raw_images("SERIES")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment