thor.pl.annotate_ROI
- thor.pl.annotate_ROI(im, ROI_polygon=None, baseline_polygon=None, lw=3)[source]
Annotate the ROI and baseline on the image.
- Parameters:
im (
numpy.ndarray
) – The image to be annotated.ROI_polygon (
shapely.geometry.Polygon
) – The ROI polygon.baseline_polygon (
shapely.geometry.Polygon
) – The baseline polygon.lw (
float
) – The line width of the annotation.