def get_image_value(x, y, img):
    """Get pixel value at specified x-y coordinate of image.

    Args:
        x (int): horizontal pixel coordinate
        y (int): vertical pixel coordinate
        img (numpy.ndarray): image from which to get get pixel value

    Returns:
        float: pixel value at specified coordinate
    """
    return img[y][x]