skimage 0.17.2

ParametersReturnsBackRef
inverse_gaussian_gradient(image, alpha=100.0, sigma=5.0)

Compute the magnitude of the gradients in the image and then inverts the result in the range [0, 1]. Flat areas are assigned values close to 1, while areas close to borders are assigned values close to 0.

This function or a similar one defined by the user should be applied over the image as a preprocessing step before calling morphological_geodesic_active_contour .

Parameters

image : (M, N) or (L, M, N) array

Grayscale image or volume.

alpha : float, optional

Controls the steepness of the inversion. A larger value will make the transition between the flat areas and border areas steeper in the resulting array.

sigma : float, optional

Standard deviation of the Gaussian filter applied over the image.

Returns

gimage : (M, N) or (L, M, N) array

Preprocessed image (or volume) suitable for morphological_geodesic_active_contour .

Inverse of gradient magnitude.

Examples

See :

Back References

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

skimage.segmentation.morphsnakes.morphological_geodesic_active_contour

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/segmentation/morphsnakes.py#224
type: <class 'function'>
Commit: