From ebe1a1865647542cf984029cbd1bda4c6ec74c89 Mon Sep 17 00:00:00 2001 From: Emmanuelle Gouillart Date: Sat, 24 Aug 2013 07:53:16 +0200 Subject: [PATCH] Minor modifications following review by Johannes --- doc/source/user_guide/getting_started.txt | 6 ++---- doc/source/user_guide/numpy_images.txt | 5 +++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/doc/source/user_guide/getting_started.txt b/doc/source/user_guide/getting_started.txt index 1d480990..21ea95a3 100644 --- a/doc/source/user_guide/getting_started.txt +++ b/doc/source/user_guide/getting_started.txt @@ -2,9 +2,7 @@ Getting started --------------- ``scikit-image`` is an image processing Python package that works with -:mod:`numpy` arrays. The package is imported as ``skimage``: - -:: +:mod:`numpy` arrays. The package is imported as ``skimage``: :: >>> import skimage @@ -16,7 +14,7 @@ Most functions of ``skimage`` are found within submodules: :: A list of submodules and functions is found on the `API reference `_ webpage. -Within ``scikit-image``, images are represented as NumPy arrays, for +Within scikit-image, images are represented as NumPy arrays, for example 2-D arrays for grayscale 2-D images :: >>> type(camera) diff --git a/doc/source/user_guide/numpy_images.txt b/doc/source/user_guide/numpy_images.txt index dd93db90..c03f703b 100644 --- a/doc/source/user_guide/numpy_images.txt +++ b/doc/source/user_guide/numpy_images.txt @@ -30,8 +30,9 @@ modify pixel values: :: >>> # Turn to black pixel on 3rd line and 10th column >>> camera[3, 10] = 0 -Be careful that the first dimension corresponds to lines, while the -second dimension (fastest varying dimension) stands for columns. +Be careful that the first dimension (``camera.shape[0]``) corresponds to +lines, while the second dimension (``camera.shape[1]``) stands for +columns. Beyond individual pixels, it is possible to access / modify values of whole sets of pixels, using the different indexing possibilities of