You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Zooming/Scaling a single image that height and width are changed independently.
1487
1484
1488
1485
Parameters
@@ -1497,14 +1494,9 @@ def respective_zoom(
1497
1494
The zooming/scaling ratio of width, greater than 1 means larger.
1498
1495
- float, a fixed ratio.
1499
1496
- tuple of 2 floats, randomly sample a value as the ratio between 2 values.
1500
-
row_index col_index and channel_index : int
1501
-
Index of row, col and channel, default (0, 1, 2), for theano (1, 2, 0).
1502
-
fill_mode : str
1503
-
Method to fill missing pixel, default `nearest`, more options `constant`, `reflect` or `wrap`, see `scipy ndimage affine_transform <https://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.ndimage.interpolation.affine_transform.html>`__
1504
-
cval : float
1505
-
Value used for points outside the boundaries of the input if mode='constant'. Default is 0.0.
1506
-
order : int
1507
-
The order of interpolation. The order has to be in the range 0-5. See ``tl.prepro.affine_transform`` and `scipy ndimage affine_transform <https://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.ndimage.interpolation.affine_transform.html>`__
1497
+
border_mode : str
1498
+
- `constant`, pad the image with a constant value (i.e. black or 0)
1499
+
- `replicate`, the row or column at the very edge of the original is replicated to the extra border.
0 commit comments