def estimate_transform(ttype, src, dst, **kwargs):
 ttype = ttype.lower()
 if (ttype not in TRANSFORMS):
  raise ValueError(("the transformation type '%s' is notimplemented" % ttype))
 tform = TRANSFORMS[ttype]()
 tform.estimate(src, dst, **kwargs)
 return tform

def estimate_transform ( ttype , src , dst , ** kwargs ) : ttype = ttype . lower ( ) if ( ttype not in TRANSFORMS ) : raise ValueError ( ( "the transformation type '%s' is notimplemented" % ttype ) ) tform = TRANSFORMS [ ttype ] ( ) tform . estimate ( src , dst , ** kwargs ) return tform
estimate 2d geometric transformation parameters .