

def falseColor(self, tile, color):
    'Recolor a tile from 8bit to CMYRGB'
    data32 = np.uint32(tile)
    if ((color == 'C') or (color == 'cyan')):
        fcdata = ((4278190080 + np.left_shift(data32, 8)) + np.left_shift(data32, 16))
    elif ((color == 'Y') or (color == 'yellow')):
        fcdata = ((4278190080 + np.left_shift(data32, 8)) + data32)
    elif ((color == 'M') or (color == 'magenta')):
        fcdata = ((4278190080 + np.left_shift(data32, 16)) + data32)
    if ((color == 'R') or (color == 'red')):
        fcdata = (4278190080 + data32)
    elif ((color == 'G') or (color == 'green')):
        fcdata = (4278190080 + np.left_shift(data32, 8))
    elif ((color == 'B') or (color == 'blue')):
        fcdata = (4278190080 + np.left_shift(data32, 16))
    return fcdata

dataset/ETHPy150Open neurodata/ndstore/django/catmaid/deprecated/colorcatmaid.py ColorCatmaid.falseColor/original