@@ -87,13 +87,13 @@ def bytescale(data, cmin=None, cmax=None, high=255, low=0):
87
87
----------
88
88
data : ndarray
89
89
PIL image data array.
90
- cmin : scalar, optional
90
+ cmin : scalar, default=None
91
91
Bias scaling of small values. Default is ``data.min()``.
92
- cmax : scalar, optional
92
+ cmax : scalar, default=None
93
93
Bias scaling of large values. Default is ``data.max()``.
94
- high : scalar, optional
94
+ high : scalar, default=None
95
95
Scale max value to `high`. Default is 255.
96
- low : scalar, optional
96
+ low : scalar, default=None
97
97
Scale min value to `low`. Default is 0.
98
98
99
99
Returns
@@ -158,9 +158,9 @@ def imread(name, flatten=False, mode=None):
158
158
----------
159
159
name : str or file object
160
160
The file name or file object to be read.
161
- flatten : bool, optional
161
+ flatten : bool, default=False
162
162
If True, flattens the color layers into a single gray-scale layer.
163
- mode : str, optional
163
+ mode : str, default=None
164
164
Mode to convert image to, e.g. ``'RGB'``. See the Notes for more
165
165
details.
166
166
@@ -229,7 +229,7 @@ def imsave(name, arr, format=None):
229
229
represents a grey-level image. Shape ``MxNx3`` stores the red, green
230
230
and blue bands along the last dimension. An alpha layer may be
231
231
included, specified as the last colour band of an ``MxNx4`` array.
232
- format : str
232
+ format : str, default=None
233
233
Image format. If omitted, the format to use is determined from the
234
234
file name extension. If a file object was used instead of a file name,
235
235
this parameter should always be used.
@@ -272,9 +272,9 @@ def fromimage(im, flatten=False, mode=None):
272
272
----------
273
273
im : PIL image
274
274
Input image.
275
- flatten : bool
275
+ flatten : bool, default=False
276
276
If true, convert the output to grey-scale.
277
- mode : str, optional
277
+ mode : str, default=None
278
278
Mode to convert image to, e.g. ``'RGB'``. See the Notes of the
279
279
`imread` docstring for more details.
280
280
@@ -470,10 +470,10 @@ def imresize(arr, size, interp='bilinear', mode=None):
470
470
* float - Fraction of current size.
471
471
* tuple - Size of the output image (height, width).
472
472
473
- interp : str, optional
473
+ interp : str, default='bilinear'
474
474
Interpolation to use for re-sizing ('nearest', 'lanczos', 'bilinear',
475
475
'bicubic' or 'cubic').
476
- mode : str, optional
476
+ mode : str, default=None
477
477
The PIL image mode ('P', 'L', etc.) to convert `arr` before resizing.
478
478
If ``mode=None`` (the default), 2-D images will be treated like
479
479
``mode='L'``, i.e. casting to long integer. For 3-D and 4-D arrays,
0 commit comments