mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-11 05:32:52 +08:00
Fix unknown Example section warning
This commit is contained in:
+2
-2
@@ -3104,8 +3104,8 @@ def _replace_by(module_function, package=None, warn=False):
|
||||
func : function
|
||||
Wrapped function, hopefully calling a function in another module.
|
||||
|
||||
Example
|
||||
-------
|
||||
Examples
|
||||
--------
|
||||
>>> @_replace_by('_tifffile.decodepackbits')
|
||||
... def decodepackbits(encoded):
|
||||
... raise NotImplementedError
|
||||
|
||||
@@ -19,8 +19,8 @@ the normal, array-oriented image functions used by scikit-image.
|
||||
instead of row, column.
|
||||
|
||||
|
||||
Example
|
||||
-------
|
||||
Examples
|
||||
--------
|
||||
We can create a Picture object open opening an image file:
|
||||
|
||||
>>> from skimage import novice
|
||||
|
||||
@@ -55,8 +55,8 @@ def denoise_bilateral(image, win_size=5, sigma_range=None, sigma_spatial=1,
|
||||
----------
|
||||
.. [1] http://users.soe.ucsc.edu/~manduchi/Papers/ICCV98.pdf
|
||||
|
||||
Example
|
||||
-------
|
||||
Examples
|
||||
--------
|
||||
>>> from skimage import data, img_as_float
|
||||
>>> astro = img_as_float(data.astronaut())
|
||||
>>> astro = astro[220:300, 220:320]
|
||||
|
||||
@@ -92,8 +92,8 @@ def inpaint_biharmonic(img, mask, multichannel=False):
|
||||
out : (M[, N[, ..., P]][, C]) ndarray
|
||||
Input image with masked pixels inpainted.
|
||||
|
||||
Example
|
||||
-------
|
||||
Examples
|
||||
--------
|
||||
>>> img = np.tile(np.square(np.linspace(0, 1, 5)), (5, 1))
|
||||
>>> mask = np.zeros_like(img)
|
||||
>>> mask[2, 2:] = 1
|
||||
@@ -111,11 +111,11 @@ def inpaint_biharmonic(img, mask, multichannel=False):
|
||||
|
||||
if img.ndim < 1:
|
||||
raise ValueError('Input array has to be at least 1D')
|
||||
|
||||
|
||||
img_baseshape = img.shape[:-1] if multichannel else img.shape
|
||||
if img_baseshape != mask.shape:
|
||||
raise ValueError('Input arrays have to be the same shape')
|
||||
|
||||
|
||||
if np.ma.isMaskedArray(img):
|
||||
raise TypeError('Masked arrays are not supported')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user