[pypy-commit] extradoc extradoc: rst-ify, and mention that you need at least pypy 1.5

antocuni noreply at buildbot.pypy.org
Thu Jul 7 17:13:03 CEST 2011


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: extradoc
Changeset: r3828:d30e46f175be
Date: 2011-07-07 17:21 +0200
http://bitbucket.org/pypy/extradoc/changeset/d30e46f175be/

Log:	rst-ify, and mention that you need at least pypy 1.5

diff --git a/blog/draft/realtime_image_processing.rst b/blog/draft/realtime_image_processing.rst
--- a/blog/draft/realtime_image_processing.rst
+++ b/blog/draft/realtime_image_processing.rst
@@ -10,12 +10,9 @@
 enough to do realtime video processing using two simple algorithms implemented
 by H&#229;kan Ard&#246;.
 
-``sobel.py`` implements a classical way of locating edges in images,
-`the Sobel operator`:http://en.wikipedia.org/wiki/Sobel_operator. It
-is an approximation of the magnitude of the 
-`image gradient`:http://en.wikipedia.org/wiki/Image_gradient. The
-processing time is spend on two
-`convolutions`:http://en.wikipedia.org/wiki/Convolution between the
+``sobel.py`` implements a classical way of locating edges in images, the
+`Sobel operator`_. It is an approximation of the magnitude of the `image
+gradient`_. The processing time is spend on two convolutions_ between the
 image and 3x3-kernels.
 
 ``magnify.py`` implements a pixel coordinate transformation that rearranges
@@ -26,11 +23,14 @@
 You can try by yourself by downloading the appropriate demo:
 
   - `pypy-image-demo.tar.bz2`_: this archive contains only the source code,
-    use this is you have PyPy already installed
+    use this is you have a recent version of PyPy (at least 1.5) already installed
 
   - `pypy-image-demo-full.tar.bz2`_: this archive contains both the source
     code and prebuilt PyPy binaries for linux 32 and 64 bits
 
+.. _`Sobel operator`: http://en.wikipedia.org/wiki/Sobel_operator
+.. _`image gradient`: http://en.wikipedia.org/wiki/Image_gradient
+.. _convolutions: http://en.wikipedia.org/wiki/Convolution
 .. _`pypy-image-demo.tar.bz2`: http://wyvern.cs.uni-duesseldorf.de/~antocuni/pypy-image-demo.tar.bz2
 .. _`pypy-image-demo-full.tar.bz2`: http://wyvern.cs.uni-duesseldorf.de/~antocuni/pypy-image-demo-full.tar.bz2
 
@@ -48,12 +48,9 @@
 
   $ pypy demo/sobel.py tv://
 
-By default magnify.py uses
-`nearest-neighbor
-interpolation.`:http://en.wikipedia.org/wiki/Nearest-neighbor_interpolation
-By adding the option -b,
-`bilinear interpolation`:http://en.wikipedia.org/wiki/Bilinear_interpolation
-will be used instead, which gives smoother result::
+By default magnify.py uses `nearest-neighbor interpolation`_.  By adding the
+option -b, `bilinear interpolation`_ will be used instead, which gives
+smoother result::
 
   $ pypy demo/magnify.py -b
 
@@ -66,6 +63,9 @@
 In C++ that kind of pixel access method would be virtual and you'll need to use
 templates to get the same effect without incurring in runtime overhead.
 
+.. _`nearest-neighbor interpolation`: http://en.wikipedia.org/wiki/Nearest-neighbor_interpolation
+.. _`bilinear interpolation`: http://en.wikipedia.org/wiki/Bilinear_interpolation
+
 The video_ on the right shows PyPy and CPython running ``sobel.py`` side by
 side (PyPy taking input from the webcam, CPython from the test
 file). Alternatively, to have a feeling on how much PyPy is faster than


More information about the pypy-commit mailing list