def make_tile_pattern(width=480, height=960, h_tile_num=4, v_tile_num=4, low_level=(940, 940, 940), high_level=(1023, 1023, 1023)):
    '\n    タイル状の縞々パターンを作る\n    '
    width_array = equal_devision(width, h_tile_num)
    height_array = equal_devision(height, v_tile_num)
    high_level = np.array(high_level, dtype=np.uint16)
    low_level = np.array(low_level, dtype=np.uint16)
    v_buf = []
    for (v_idx, height) in enumerate(height_array):
        h_buf = []
        for (h_idx, width) in enumerate(width_array):
            tile_judge = (((h_idx + v_idx) % 2) == 0)
            h_temp = np.zeros((height, width, 3), dtype=np.uint16)
            h_temp[:, :] = (high_level if tile_judge else low_level)
            h_buf.append(h_temp)
        v_buf.append(np.hstack(h_buf))
    img = np.vstack(v_buf)
    return img
タイル状の縞々パターンを作る
def make_tile_pattern(width=480, height=960, h_tile_num=4, v_tile_num=4, low_level=(940, 940, 940), high_level=(1023, 1023, 1023)):
    '\n    \n    '
    width_array = equal_devision(width, h_tile_num)
    height_array = equal_devision(height, v_tile_num)
    high_level = np.array(high_level, dtype=np.uint16)
    low_level = np.array(low_level, dtype=np.uint16)
    v_buf = []
    for (v_idx, height) in enumerate(height_array):
        h_buf = []
        for (h_idx, width) in enumerate(width_array):
            tile_judge = (((h_idx + v_idx) % 2) == 0)
            h_temp = np.zeros((height, width, 3), dtype=np.uint16)
            h_temp[:, :] = (high_level if tile_judge else low_level)
            h_buf.append(h_temp)
        v_buf.append(np.hstack(h_buf))
    img = np.vstack(v_buf)
    return img