def color_to_gray(color):

    W_R = 0.299
    W_B = 0.114
    W_G = 0.587

    red_channel = color[:,:,:,0:1]
    blue_channel = color[:,:,:,2:3]
    green_channel = color[:,:,:,1:2]

    Y_prime = W_R * red_channel + W_G * green_channel + W_B * blue_channel

    return Y_prime
Weblogo
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/expr/image.py/color_to_gray--crossover with--dataset/ETHPy150Open chapmanb/cloudbiolinux/cloudbio/custom/bio_nextgen.py/install_weblogo