[python-dtcwt] 134/497: Update variant.rst
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Tue Jul 21 18:05:57 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 c404342d034b2f00a34e0ff6ab7aeaa1b3ad802b
Author: scf32 <scf32 at cam.ac.uk>
Date: Thu Nov 7 15:02:52 2013 +0000
Update variant.rst
Example illustrating PR vs non-PR
---
docs/variant.rst | 38 +++++++++++++++++++-------------------
1 file changed, 19 insertions(+), 19 deletions(-)
diff --git a/docs/variant.rst b/docs/variant.rst
index a1eaa4b..1a90e2e 100644
--- a/docs/variant.rst
+++ b/docs/variant.rst
@@ -48,16 +48,16 @@ Example
Working on the Lena image, the standard 2-D DTCWT achieves perfect reconstruction:
-.. codeblock:: console
+.. code-block:: console
+
+ # Perform the standard 2-D DTCWT
+ Yl, Yh = dtcwt.dtwavexfm2(image, tfmlevel, 'near_sym_b', 'qshift_b')
+
+ # Perform the inverse transform
+ Z = dtcwt.dtwaveifm2(Yl, Yh, biort='near_sym_b', qshift='qshift_b')
- # Perform the standard 2-D DTCWT
- Yl, Yh = dtcwt.dtwavexfm2(image, tfmlevel, 'near_sym_b', 'qshift_b')
-
- # Perform the inverse transform
- Z = dtcwt.dtwaveifm2(Yl, Yh, biort='near_sym_b', qshift='qshift_b')
-
- # Show the error
- imshow(Z-image, cmap=cm.gray)
+ # Show the error
+ imshow(Z-image, cmap=cm.gray)
.. figure:: lena_no_error.png
@@ -66,17 +66,17 @@ The error signal appears to be just noise, which we can attribute to floating-po
Using the modified wavelets yields the following result:
-.. codeblock:: console
+.. code-block:: console
+
+ # Perform the symmetry-modified 2-D DTCWT
+ Yl, Yh = dtcwt.dtwavexfm2b(image, tfmlevel, 'near_sym_b_bp', 'qshift_b_bp')
+
+ # Perform the inverse transform
+ Z = dtcwt.dtwaveifm2b(Yl, Yh, biort='near_sym_b_bp', qshift='qshift_b_bp')
- # Perform the symmetry-modified 2-D DTCWT
- Yl, Yh = dtcwt.dtwavexfm2b(image, tfmlevel, 'near_sym_b_bp', 'qshift_b_bp')
-
- # Perform the inverse transform
- Z = dtcwt.dtwaveifm2b(Yl, Yh, biort='near_sym_b_bp', qshift='qshift_b_bp')
-
- # Show the error
- imshow(Z-image, cmap=cm.gray)
+ # Show the error
+ imshow(Z-image, cmap=cm.gray)
-..figure:: lena_error.png
+.. figure:: lena_error.png
As we would expect, the error is more significant, but only near 45 and 135 degree edge features.
--
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