def is_in_roi(x, y, roi_x, roi_y, roi_width, roi_height):
    """
    Returns true if in region of interest and false if not
    """
    return ((x >= roi_x and x <= roi_x + roi_width) and (y >= roi_y and y <= roi_y + roi_height))