[python-dtcwt] 367/497: plotting: note range of input image for overlay_quiver_DTCWT
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Tue Jul 21 18:06:28 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 0f9665844c06c6bcfe188d29a757211cb286f257
Author: Rich Wareham <rjw57 at cam.ac.uk>
Date: Fri Feb 7 15:23:02 2014 +0000
plotting: note range of input image for overlay_quiver_DTCWT
---
dtcwt/plotting.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dtcwt/plotting.py b/dtcwt/plotting.py
index 5c1635f..b715ce1 100644
--- a/dtcwt/plotting.py
+++ b/dtcwt/plotting.py
@@ -16,6 +16,7 @@ def overlay_quiver_DTCWT(image, vectorField, level, offset):
"""Overlays nicely coloured quiver plot of complex coefficients over original full-size image,
providing a useful phase visualisation.
+ :param image: array holding grayscale values on the interval [0, 255] to display
:param vectorField: a single [MxNx6] numpy array of DTCWT coefficients
:param level: the transform level (1-indexed) of *vectorField*.
:param offset: Offset for DTCWT coefficients (typically 0.5)
@@ -42,7 +43,7 @@ def overlay_quiver_DTCWT(image, vectorField, level, offset):
transform2d = dtcwt.Transform2d()
lena_t = transform2d.forward(lena, nlevels=3)
- plotting.overlay_quiver_DTCWT(lena, lena_t.highpasses[-1], 3, 0.5)
+ plotting.overlay_quiver_DTCWT(lena*255, lena_t.highpasses[-1], 3, 0.5)
.. codeauthor:: R. Anderson, 2005 (MATLAB)
.. codeauthor:: S. C. Forshaw, 2014 (Python)
--
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