Skip to content

Instantly share code, notes, and snippets.

View xgrg's full-sized avatar
🤖
gradient decent

Greg Operto xgrg

🤖
gradient decent
View GitHub Profile
@haehn
haehn / gist:5614966
Created May 20, 2013 19:52
Load an ITK transform file in Python.
def readITKtransform( transform_file ):
'''
'''
# read the transform
transform = None
with open( transform_file, 'r' ) as f:
for line in f:
# check for Parameters: