Skip to content
Snippets Groups Projects
Commit 35d0ad88 authored by Guillaume HEUSCH's avatar Guillaume HEUSCH
Browse files

[cvpr14] added mean color extraction for all channels, instead of green only

parent 3c047cf9
No related branches found
No related tags found
1 merge request!5Pad
Pipeline #
......@@ -341,7 +341,8 @@ def compute_average_colors_mask(image, mask, plot=False):
pyplot.show()
green = image[1, mask]
return numpy.mean(green)
return [numpy.mean(image[0, mask]), numpy.mean(image[1, mask]), numpy.mean(image[2, mask])]
#return numpy.mean(green)
def compute_average_colors_wholeface(image, plot=False):
"""compute_average_colors_mask(image [, plot]) -> green_color
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment