[python-dtcwt] 235/497: examples: remove wavelet-domain warped image from registration example
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Tue Jul 21 18:06:09 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 e1b30f6e0108246dc00d071cc425c472b0bf55ca
Author: Rich Wareham <rjw57 at cam.ac.uk>
Date: Fri Jan 24 16:47:10 2014 +0000
examples: remove wavelet-domain warped image from registration example
---
examples/image-registration-1.py | 18 ++++--------------
1 file changed, 4 insertions(+), 14 deletions(-)
diff --git a/examples/image-registration-1.py b/examples/image-registration-1.py
index 9e81d04..2d57609 100755
--- a/examples/image-registration-1.py
+++ b/examples/image-registration-1.py
@@ -38,7 +38,7 @@ def rot(theta):
return np.array([[c,s,0], [-s,c,0], [0,0,1]])
theta = np.deg2rad(10)
-dx, dy = 20/f1.shape[1], -10/f1.shape[0]
+dx, dy = 20/f1.shape[1], -30/f1.shape[0]
T = trans(0.5+dx, 0.5+dy).dot(rot(theta)).dot(trans(-0.5,-0.5))
@@ -131,25 +131,15 @@ colorbar()
# Compute a high-quality warping using Lanczos re-sampling
logging.info('Computing high-quality warped image')
-Yh3 = list(affinewarphighpass(x, a, method='lanczos') for x in Yh1)
-warped_wavelet = dtcwt.dtwaveifm2(Yl1, Yh3)
warped_direct = affinewarp(f1, a, method='lanczos')
figure()
-subplot(221)
-imshow(f1, cmap=cm.gray, clim=(0,1))
-title('Frame 1')
-
-subplot(222)
+subplot(121)
imshow(f2, cmap=cm.gray, clim=(0,1))
title('Frame 2')
-subplot(223)
-imshow(warped_wavelet, cmap=cm.gray, clim=(0,1))
-title('Frame 1 warped to Frame 2 (wavelet domain)')
-
-subplot(224)
+subplot(122)
imshow(warped_direct, cmap=cm.gray, clim=(0,1))
-title('Frame 1 warped to Frame 2 (image domain)')
+title('Frame 1 warped to Frame 2')
show()
--
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