def convert_rgb_to_bokehrgba(img_data, downsample=1):
    if img_data.dtype != np.uint8:
        raise NotImplementedError

    if img_data.ndim != 3:
        raise NotImplementedError

    # downsample for render performance, v-flip since plot origin is bottom left
    # img_data = np.transpose(img_data, (1,2,0))
    img_data = img_data[::-downsample, ::downsample, :]
    img_h, img_w, C = img_data.shape

    # add an alpha channel to the image and recast from pixels of u8u8u8u8 to u32
    bokeh_img = np.dstack([img_data, 255 * np.ones((img_h, img_w), np.uint8)])
    final_image = bokeh_img.reshape(img_h, img_w * (C+1)).view(np.uint32)

    return final_image
Returns arguments for the database function call.
dataset/ETHPy150Open NervanaSystems/neon/neon/visualizations/data.py/convert_rgb_to_bokehrgba--crossover with--dataset/ETHPy150Open ipeirotis/Mturk-Tracker/app/utils/management/commands/base/db_procedure_command.py/DBProcedureCommand.get_proc_args