[python-dtcwt] 271/497: registration: fix default method for warp
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Tue Jul 21 18:06:13 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/sid
in repository python-dtcwt.
commit 0aa2a94c07bc7ed522578cd8cbd9b6d0d92c88c8
Author: Rich Wareham <rjw57 at cam.ac.uk>
Date: Thu Jan 30 12:03:40 2014 +0000
registration: fix default method for warp
---
dtcwt/registration.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dtcwt/registration.py b/dtcwt/registration.py
index ac059cc..1eadc97 100644
--- a/dtcwt/registration.py
+++ b/dtcwt/registration.py
@@ -244,7 +244,7 @@ def normsample(Yh, xs, ys, method=None):
"""
return dtcwt.sampling.sample(Yh, xs*Yh.shape[1], ys*Yh.shape[0], method=method)
-def warptransform(t, avecs, levels, method='bilinear'):
+def warptransform(t, avecs, levels, method=None):
"""
Return a warped version of a transformed image acting only on specified levels.
@@ -255,6 +255,9 @@ def warptransform(t, avecs, levels, method='bilinear'):
*t* should be a
:pyclass:`dtcwt.backend.base.TransformDomainSignal`-compatible instance.
+ The *method* parameter is interpreted as in :py:func:`dtcwt.sampling.rescale` and
+ is the sampling method used to resize *avecs* to *shape*.
+
.. note::
This function will clone the transform *t* but it is a shallow clone
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-dtcwt.git
More information about the debian-science-commits
mailing list