Added comment about footprint

This commit is contained in:
Vighnesh Birodkar
2014-06-26 02:05:20 +05:30
parent f481724f35
commit c08a6876d6
+7
View File
@@ -136,6 +136,13 @@ def rag_meancolor(image, labels, connectivity=2):
fp[0, ...] = 0
fp = fp.swapaxes(0, d)
# For example
# if labels.ndim = 2 and connectivity = 1
# fp = [[0,0,0],[0,1,1],[0,1,0]]
#
# if labels.ndim = 2 and connectivity = 2
# fp = [[0,0,0],[0,1,1],[0,1,1]]
filters.generic_filter(
labels,
function=_add_edge_filter,