mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-01 12:50:48 +08:00
Minor modifications following review by Johannes
This commit is contained in:
@@ -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
|
||||
<http://scikit-image.org/docs/0.8.0/api/api.html>`_ 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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user