def checkNodeInObstacle(node, img):
    """
    To check the color of the image at a particular Node
    :param node: node to check
    :type node: Node type
    :param img: the image to check in
    :type img: np.array
    :return: Boolean of True or False
    :rtype: Boolean
    """

    if img[node.y, node.x][0] == 0 and img[node.y, node.x][1] == 0 and img[node.y, node.x][2] == 0:
        return True
    return False