#NEWLINE# def gaussian_video( video , shrink_multiple ) : #NEWLINE# #INDENT# 'Create a gaussian representation of a video' #NEWLINE# vid_data = None #NEWLINE# for x in range ( 0 , video . shape [ 0 ] ) : #NEWLINE# #INDENT# frame = video [ x ] #NEWLINE# gauss_copy = numpy . ndarray ( shape = frame . shape , dtype = 'float' ) #NEWLINE# gauss_copy [ : ] = frame #NEWLINE# for i in range ( shrink_multiple ) : #NEWLINE# #INDENT# gauss_copy = cv2 . pyrDown ( gauss_copy ) #NEWLINE# #UNINDENT# if ( x == 0 ) : #NEWLINE# #INDENT# vid_data = numpy . zeros ( ( video . shape [ 0 ] , gauss_copy . shape [ 0 ] , gauss_copy . shape [ 1 ] , 3 ) ) #NEWLINE# #UNINDENT# vid_data [ x ] = gauss_copy #NEWLINE# #UNINDENT# return vid_data