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
.
Grayscale image or volume.
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.
Standard deviation of the Gaussian filter applied over the image.
Preprocessed image (or volume) suitable for morphological_geodesic_active_contour
.
Inverse of gradient magnitude.
The following pages refer to to this document either explicitly or contain code examples using this.
skimage.segmentation.morphsnakes.morphological_geodesic_active_contour
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