"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "skimage/future/graph/rag.py" between
scikit-image-0.19.1.tar.gz and scikit-image-0.19.2.tar.gz

About: scikit-image is a collection of algorithms for image processing in Python.

rag.py  (scikit-image-0.19.1):rag.py  (scikit-image-0.19.2)
skipping to change at line 400 skipping to change at line 400
labels : ndarray labels : ndarray
The labelled image. The labelled image.
edge_map : ndarray edge_map : ndarray
This should have the same shape as that of `labels`. For all pixels This should have the same shape as that of `labels`. For all pixels
along the boundary between 2 adjacent regions, the average value of the along the boundary between 2 adjacent regions, the average value of the
corresponding pixels in `edge_map` is the edge weight between them. corresponding pixels in `edge_map` is the edge weight between them.
connectivity : int, optional connectivity : int, optional
Pixels with a squared distance less than `connectivity` from each other Pixels with a squared distance less than `connectivity` from each other
are considered adjacent. It can range from 1 to `labels.ndim`. Its are considered adjacent. It can range from 1 to `labels.ndim`. Its
behavior is the same as `connectivity` parameter in behavior is the same as `connectivity` parameter in
`scipy.ndimage.filters.generate_binary_structure`. `scipy.ndimage.generate_binary_structure`.
Examples Examples
-------- --------
>>> from skimage import data, segmentation, filters, color >>> from skimage import data, segmentation, filters, color
>>> from skimage.future import graph >>> from skimage.future import graph
>>> img = data.chelsea() >>> img = data.chelsea()
>>> labels = segmentation.slic(img) >>> labels = segmentation.slic(img)
>>> edge_map = filters.sobel(color.rgb2gray(img)) >>> edge_map = filters.sobel(color.rgb2gray(img))
>>> rag = graph.rag_boundary(labels, edge_map) >>> rag = graph.rag_boundary(labels, edge_map)
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)