pyimreg / python-register

Linear and non-linear image registration methods, using scipy and numpy.
Other
62 stars 34 forks source link

Remove dictionaries from register.py #2

Closed nfaggian closed 13 years ago

nfaggian commented 13 years ago

We need to dictionary look ups for samplers, metrics and models - a user of the API should construct each of these explicitly.

affine = register.register( model='affine', )

should look more like:

affine = register.register( model=customModel )

In this case the custom deformation model could be constructed by inheriting from the base deformation model:

class customModel( register.model.model ): ...

nfaggian commented 13 years ago

Above change requires examples to change also.