def make_color_checker_image(rgb, width=1920, padding_rate=0.01):
    '\n    6x4 の カラーチェッカーの画像を作る。\n    Height は Width から自動計算される。padding_rate で少し値が変わる。\n    '
    h_patch_num = 6
    v_patch_num = 4
    each_padding = int(((width * padding_rate) + 0.5))
    h_padding_total = (each_padding * (h_patch_num + 1))
    h_patch_width_total = (width - h_padding_total)
    patch_height = (h_patch_width_total // h_patch_num)
    height = ((patch_height * v_patch_num) + (each_padding * (v_patch_num + 1)))
    patch_width_list = equal_devision(h_patch_width_total, h_patch_num)
    img = np.zeros((height, width, 3))
    for v_idx in range(v_patch_num):
        h_pos_st = each_padding
        v_pos_st = (each_padding + (v_idx * (patch_height + each_padding)))
        for h_idx in range(h_patch_num):
            rgb_idx = ((v_idx * h_patch_num) + h_idx)
            pos = (h_pos_st, v_pos_st)
            patch_img = (np.ones((patch_height, patch_width_list[h_idx], 3)) * rgb[rgb_idx])
            merge(img, patch_img, pos)
            h_pos_st += (patch_width_list[h_idx] + each_padding)
    return img
6x4 の カラーチェッカーの画像を作る。
Height は Width から自動計算される。padding_rate で少し値が変わる。
def make_color_checker_image(rgb, width=1920, padding_rate=0.01):
    '\n    6x4 の カラーチェッカーの画像を作る。\n    Height は Width から自動計算される。padding_rate で少し値が変わる。\n    '
    h_patch_num = 6
    v_patch_num = 4
    each_padding = int(((width * padding_rate) + 0.5))
    h_padding_total = (each_padding * (h_patch_num + 1))
    h_patch_width_total = (width - h_padding_total)
    patch_height = (h_patch_width_total // h_patch_num)
    height = ((patch_height * v_patch_num) + (each_padding * (v_patch_num + 1)))
    patch_width_list = equal_devision(h_patch_width_total, h_patch_num)
    img = np.zeros((height, width, 3))
    for v_idx in range(v_patch_num):
        h_pos_st = each_padding
        v_pos_st = (each_padding + (v_idx * (patch_height + each_padding)))
        for h_idx in range(h_patch_num):
            rgb_idx = ((v_idx * h_patch_num) + h_idx)
            pos = (h_pos_st, v_pos_st)
            patch_img = (np.ones((patch_height, patch_width_list[h_idx], 3)) * rgb[rgb_idx])
            merge(img, patch_img, pos)
            h_pos_st += (patch_width_list[h_idx] + each_padding)
    return img