def pixel_color_checker(data, row_index, pixel_index, R, G, B):
    """
    :param data: image data as array
    :param row_index: index of image row to be checked
    :param pixel_index: index of pixel to be checked
    :param R: value (in range [0, 255]) at the R (red) value of the RGB notation
    :param G: value (in range [0, 255]) at the G (green) value of the RGB notation
    :param B: value (in range [0, 255]) at the B (blue) value of the RGB notation
    :return: boolean specifying whether the pixel of interest is colored as specified by the RGB values
    """
    if (data[row_index][pixel_index][0] == R) and (data[row_index][pixel_index][1] == G) \
            and (data[row_index][pixel_index][2] == B):
        return True
    else:
        return False