skimage 0.17.2

ParametersReturnsBackRef
inpaint_biharmonic(image, mask, multichannel=False)

Parameters

image : (M[, N[, ..., P]][, C]) ndarray

Input image.

mask : (M[, N[, ..., P]]) ndarray

Array of pixels to be inpainted. Have to be the same shape as one of the 'image' channels. Unknown pixels have to be represented with 1, known pixels - with 0.

multichannel : boolean, optional

If True, the last :None:None:`image` dimension is considered as a color channel, otherwise as spatial.

Returns

out : (M[, N[, ..., P]][, C]) ndarray

Input image with masked pixels inpainted.

Inpaint masked points in image with biharmonic equations.

Examples

This example is valid syntax, but we were not able to check execution
>>> img = np.tile(np.square(np.linspace(0, 1, 5)), (5, 1))
... mask = np.zeros_like(img)
... mask[2, 2:] = 1
... mask[1, 3:] = 1
... mask[0, 4:] = 1
... out = inpaint_biharmonic(img, mask)
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

skimage.restoration.inpaint.inpaint_biharmonic

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /skimage/restoration/inpaint.py#76
type: <class 'function'>
Commit: