Add default values for background in _label2rgb_avg

This commit is contained in:
Juan Nunez-Iglesias
2014-06-18 16:46:51 +10:00
parent d72163a037
commit b70d423aab
+1 -1
View File
@@ -156,7 +156,7 @@ def _label2rgb_overlay(label, image=None, colors=None, alpha=0.3,
return result
def _label2rgb_avg(label_field, image, bg_label, bg_color):
def _label2rgb_avg(label_field, image, bg_label=0, bg_color=(0, 0, 0)):
"""Visualise each segment in `label_field` with its mean color in `image`.
Parameters