#NEWLINE# def rgb_yuv( self , x ) : #NEWLINE# #INDENT# '\n        .. todo::\n\n            WRITEME\n        ' #NEWLINE# r = x [ : , : , : , 0 ] #NEWLINE# g = x [ : , : , : , 1 ] #NEWLINE# b = x [ : , : , : , 2 ] #NEWLINE# y = ( ( ( 0.299 * r ) + ( 0.587 * g ) ) + ( 0.114 * b ) ) #NEWLINE# u = ( ( ( ( - 0.14713 ) * g ) - ( 0.28886 * g ) ) + ( 0.436 * b ) ) #NEWLINE# v = ( ( ( 0.615 * r ) - ( 0.51499 * g ) ) - ( 0.10001 * b ) ) #NEWLINE# x [ : , : , : , 0 ] = y #NEWLINE# x [ : , : , : , 1 ] = u #NEWLINE# x [ : , : , : , 2 ] = v #NEWLINE# return x