|
10 | 10 | * */
|
11 | 11 |
|
12 | 12 | const char* image_resample__doc__ =
|
13 |
| -"Resample input_array, blending it in-place into output_array, using an\n" |
14 |
| -"affine transformation.\n\n" |
| 13 | +R"""(Resample input_array, blending it in-place into output_array, using an affine transform. |
15 | 14 |
|
16 |
| -"Parameters\n" |
17 |
| -"----------\n" |
18 |
| -"input_array : 2-d or 3-d NumPy array of float, double or `numpy.uint8`\n" |
19 |
| -" If 2-d, the image is grayscale. If 3-d, the image must be of size\n" |
20 |
| -" 4 in the last dimension and represents RGBA data.\n\n" |
| 15 | +Parameters |
| 16 | +---------- |
| 17 | +input_array : 2-d or 3-d NumPy array of float, double or `numpy.uint8` |
| 18 | + If 2-d, the image is grayscale. If 3-d, the image must be of size 4 in the last |
| 19 | + dimension and represents RGBA data. |
21 | 20 |
|
22 |
| -"output_array : 2-d or 3-d NumPy array of float, double or `numpy.uint8`\n" |
23 |
| -" The dtype and number of dimensions must match `input_array`.\n\n" |
| 21 | +output_array : 2-d or 3-d NumPy array of float, double or `numpy.uint8` |
| 22 | + The dtype and number of dimensions must match `input_array`. |
24 | 23 |
|
25 |
| -"transform : matplotlib.transforms.Transform instance\n" |
26 |
| -" The transformation from the input array to the output array.\n\n" |
| 24 | +transform : matplotlib.transforms.Transform instance |
| 25 | + The transformation from the input array to the output array. |
27 | 26 |
|
28 |
| -"interpolation : int, default: NEAREST\n" |
29 |
| -" The interpolation method. Must be one of the following constants\n" |
30 |
| -" defined in this module:\n\n" |
| 27 | +interpolation : int, default: NEAREST |
| 28 | + The interpolation method. Must be one of the following constants defined in this |
| 29 | + module: |
31 | 30 |
|
32 |
| -" NEAREST, BILINEAR, BICUBIC, SPLINE16, SPLINE36,\n" |
33 |
| -" HANNING, HAMMING, HERMITE, KAISER, QUADRIC, CATROM, GAUSSIAN,\n" |
34 |
| -" BESSEL, MITCHELL, SINC, LANCZOS, BLACKMAN\n\n" |
| 31 | + NEAREST, BILINEAR, BICUBIC, SPLINE16, SPLINE36, HANNING, HAMMING, HERMITE, KAISER, |
| 32 | + QUADRIC, CATROM, GAUSSIAN, BESSEL, MITCHELL, SINC, LANCZOS, BLACKMAN |
35 | 33 |
|
36 |
| -"resample : bool, optional\n" |
37 |
| -" When `True`, use a full resampling method. When `False`, only\n" |
38 |
| -" resample when the output image is larger than the input image.\n\n" |
| 34 | +resample : bool, optional |
| 35 | + When `True`, use a full resampling method. When `False`, only resample when the |
| 36 | + output image is larger than the input image. |
39 | 37 |
|
40 |
| -"alpha : float, default: 1\n" |
41 |
| -" The transparency level, from 0 (transparent) to 1 (opaque).\n\n" |
| 38 | +alpha : float, default: 1 |
| 39 | + The transparency level, from 0 (transparent) to 1 (opaque). |
42 | 40 |
|
43 |
| -"norm : bool, default: False\n" |
44 |
| -" Whether to norm the interpolation function.\n\n" |
| 41 | +norm : bool, default: False |
| 42 | + Whether to norm the interpolation function. |
45 | 43 |
|
46 |
| -"radius: float, default: 1\n" |
47 |
| -" The radius of the kernel, if method is SINC, LANCZOS or BLACKMAN.\n"; |
| 44 | +radius: float, default: 1 |
| 45 | + The radius of the kernel, if method is SINC, LANCZOS or BLACKMAN. |
| 46 | +)"""; |
48 | 47 |
|
49 | 48 |
|
50 | 49 | static pybind11::array_t<double>
|
|
0 commit comments