[python-dtcwt] 462/497: registration: interpolate Q matrices using bilinear interpolation

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Jul 21 18:06:38 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 abb791a2dc8252212fe60a70d3c21c5e01a94933
Author: Rich Wareham <rjw57 at cam.ac.uk>
Date:   Tue Oct 7 12:33:31 2014 +0100

    registration: interpolate Q matrices using bilinear interpolation
    
    This leads to smoother velocity fields.
---
 dtcwt/registration.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dtcwt/registration.py b/dtcwt/registration.py
index 9deccc9..49d5ddd 100644
--- a/dtcwt/registration.py
+++ b/dtcwt/registration.py
@@ -357,7 +357,7 @@ def estimatereg(source, reference, regshape=None):
 
         qts = np.zeros(avecs.shape[:2] + all_qts[0].shape[2:])
         for x in all_qts:
-            qts += dtcwt.sampling.rescale(_boxfilter(x, 3), avecs.shape[:2], method='nearest')
+            qts += dtcwt.sampling.rescale(_boxfilter(x, 3), avecs.shape[:2], method='bilinear')
 
         avecs += solvetransform(qts)
 

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