Skip to content

Commit

Permalink
advanced/image_processing: fix rst error and formatting
Browse files Browse the repository at this point in the history
advanced/image_processing/index.rst:511: (WARNING/2) Literal block expected; none found.
  • Loading branch information
keszybz committed Aug 25, 2011
1 parent 6c980e7 commit 3702c92
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
3 changes: 2 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ Requirements

* make
* sphinx :) (>= 1.0)
* matplotlib
* pdflatex
* pdfjam
* matplotlib
* scikits.learn (>= 0.8 ?)

Editorial policy
-----------------
Expand Down
18 changes: 8 additions & 10 deletions advanced/image_processing/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -506,20 +506,18 @@ Use a **gradient operator** (**Sobel**) to find high intensity variations::
.. plot:: pyplots/image_find_edges.py
:scale: 100

**Canny filter**::
**Canny filter**

The Canny filter is available in the
``scikits.image``, (doc:
http://scikits-image.org/docs/dev/api/scikits.image.filter.html#canny),
The Canny filter is available in the ``scikits.image``
(`doc <http://scikits-image.org/docs/dev/api/scikits.image.filter.html#canny>`_),
but for convenience we've shipped it as a :download:`standalone module
<../../pyplots/image_source_canny.py>` with this tutorial.


>>> #from scikits.image.filter import canny
>>> #or use module shipped with tutorial
>>> im += 0.1*np.random.random(im.shape)
>>> edges = canny(im, 1, 0.4, 0.2) # not enough smoothing
>>> edges = canny(im, 3, 0.3, 0.2) # better parameters
>>> #from scikits.image.filter import canny
>>> #or use module shipped with tutorial
>>> im += 0.1*np.random.random(im.shape)
>>> edges = canny(im, 1, 0.4, 0.2) # not enough smoothing
>>> edges = canny(im, 3, 0.3, 0.2) # better parameters

.. plot:: pyplots/image_canny.py
:scale: 65
Expand Down
2 changes: 1 addition & 1 deletion advanced/scikit-learn/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ be for instance polynomial or exponential:

.. toctree::

digits_classification_excercise
digits_classification_exercise



Expand Down

0 comments on commit 3702c92

Please sign in to comment.