Clarify and fix docstrings

This commit is contained in:
Juan Nunez-Iglesias committed 2015-01-22 11:38:37 +11:00
1 parent ac5c0c30a9
commit 7935e51596
4 files changed
+30 -25

No files matched your search

+4
View File
@@ -203,6 +203,10 @@ def mark_boundaries(image, label_img, color=(1, 1, 0),
if marked.ndim == 2:
marked = gray2rgb(marked)
if mode == 'subpixel':
# Here, we want to interpose an extra line of pixels between
# each original line — except for the last axis which holds
# the RGB information. ``nd.zoom`` then performs the (cubic)
# interpolation, filling in the values of the interposed pixels
marked = nd.zoom(marked, [2 - 1/s for s in marked.shape[:-1]] + [1],
mode='reflect')
boundaries = find_boundaries(label_img, mode=mode,