mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-27 17:17:07 +08:00
Use logo instead of horse for RGBA img
This commit is contained in:
@@ -50,7 +50,7 @@ background is realized with :func:`rgba2rgb` ::
|
||||
|
||||
>>> from skimage.color import rgba2rgb
|
||||
>>> from skimage import data
|
||||
>>> img_rgba = data.horse()
|
||||
>>> img_rgba = data.logo()
|
||||
>>> img_rgb = rgba2rgb(img_rgba)
|
||||
|
||||
Conversion between color and gray values
|
||||
|
||||
@@ -200,7 +200,7 @@ def rgba2rgb(rgba, background=(1, 1, 1)):
|
||||
--------
|
||||
>>> from skimage import color
|
||||
>>> from skimage import data
|
||||
>>> img_rgba = data.horse()
|
||||
>>> img_rgba = data.logo()
|
||||
>>> img_rgb = color.rgba2rgb(img_rgba)
|
||||
"""
|
||||
arr = _prepare_rgba_array(rgba)
|
||||
|
||||
Reference in New Issue
Block a user