[python-dtcwt] 427/497: registration: use faster sampling method

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Jul 21 18:06:35 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 d9289f977a45c06994d36f03c16c482d17248e60
Author: Rich Wareham <rjw57 at cam.ac.uk>
Date:   Fri Mar 28 13:12:01 2014 +0000

    registration: use faster sampling method
    
    When summing Qtilde matrices in a region, we already box filter and only
    sample at integer points. There is no need to do bilinear interpolation.
---
 dtcwt/registration.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dtcwt/registration.py b/dtcwt/registration.py
index 823d660..7c1b73f 100644
--- a/dtcwt/registration.py
+++ b/dtcwt/registration.py
@@ -318,7 +318,7 @@ def estimatereg(source, reference, regshape=None):
         # Warp the levels we'll be looking at with the current best-guess transform
         warped = warptransform(source, avecs, levels, method='bilinear')
 
-        qts = np.sum(list(dtcwt.sampling.rescale(_boxfilter(x, 3), avecs.shape[:2], method='bilinear')
+        qts = np.sum(list(dtcwt.sampling.rescale(_boxfilter(x, 3), avecs.shape[:2], method='nearest')
                           for x in qtildematrices(warped, reference, levels)),
                      axis=0)
 

-- 
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