def extract_line(props, image):
    """ Extract the area of an image belonging to a feature given a bounding box

    :param props: the properties of the region
    :param image: image to extract the region from
    :returns: ndarray -- section of the image within the bounding box
    """
    hs, ws = props['min_row'], props['min_col']
    he, we = props['max_row'], props['max_col']
    image_section = image[hs:he, ws:we]
    return image_section