findClips

This commit is contained in:
j 2011-10-02 20:16:28 +02:00
commit 78b07dd64a
11 changed files with 228 additions and 14 deletions

View file

@ -318,6 +318,9 @@ def average_color(prefix, start=0, end=0):
color = list(map(float, color))
return ox.image.getHSL(color)
def average_volume(prefix, start=0, end=0):
#FIXME: actually compute volume
return 0
def get_distance(rgb0, rgb1):
dst = math.sqrt(pow(rgb0[0] - rgb1[0], 2) + pow(rgb0[0] - rgb1[0], 2) + pow(rgb0[0] - rgb1[0], 2))