mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-10 12:40:08 +08:00
Implemented Stéfan's minor comments.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
.. _data_types:
|
||||
|
||||
===================================
|
||||
Image data types and what they mean
|
||||
|
||||
@@ -24,12 +24,12 @@ example 2-D arrays for grayscale 2-D images ::
|
||||
(512, 512)
|
||||
|
||||
The :mod:`skimage.data` submodule provides a set of functions returning
|
||||
model images, that can be used to get started quickly on using
|
||||
example images, that can be used to get started quickly on using
|
||||
scikit-image's functions: ::
|
||||
|
||||
>>> coins = data.coins()
|
||||
>>> from skimage import filter
|
||||
>>> threshold_value = filter.threshold_otsu(coins)
|
||||
>>> from skimage import filters
|
||||
>>> threshold_value = filters.threshold_otsu(coins)
|
||||
>>> threshold_value
|
||||
107
|
||||
|
||||
|
||||
@@ -21,6 +21,10 @@ Retrieving statistical information about gray values: ::
|
||||
>>> camera.mean()
|
||||
118.31400299072266
|
||||
|
||||
Numpy arrays representing images can be of different integer of float
|
||||
numerical types. See :ref:`data_types` for more information about data
|
||||
types.
|
||||
|
||||
Numpy indexing can be used both for looking at pixel values, and to
|
||||
modify pixel values: ::
|
||||
|
||||
|
||||
Reference in New Issue
Block a user