loki.plot.plot_img_with_annotation
- loki.plot.plot_img_with_annotation(fullres_img, roi_polygon, linewidth, xlim, ylim)
Plots image with polygons.
- Parameters:
fullres_img – The full-resolution image to display (as a numpy array).
roi_polygon – A list of polygons, where each polygon is a list of (x, y) coordinate tuples.
linewidth – The thickness of the lines used to draw the polygons.
xlim – A tuple (xmin, xmax) defining the x-axis limits for zooming in on a specific region of the image.
ylim – A tuple (ymin, ymax) defining the y-axis limits for zooming in on a specific region of the image.
- Returns:
Displays the image with ROI polygons overlaid.