def code_image_embed(image_1d_array, code_array):
    """
    embed the code array into the rgb array
    :param image_1d_array: 1D RGB numpy array
    :param code_array: processed code array
    :return: code embeded 1D RGB numpy array
    """
    image_code_array = []
    for i in range(len(code_array)):
        if image_1d_array[i] >= code_array[i]:
            image_code_array.append(image_1d_array[i] - code_array[i])
        else:
            image_code_array.append(image_1d_array[i] + code_array[i])
    return image_code_array
