health_multimodal.common.visualization

Functions

plot_phrase_grounding_similarity_map(…[, …])

Plot visualization of the input image, the similarity heatmap and the heatmap isolines.

health_multimodal.common.visualization.plot_phrase_grounding_similarity_map(image_path, similarity_map, bboxes=None)[source]

Plot visualization of the input image, the similarity heatmap and the heatmap isolines.

Parameters
  • image_path (Path) – Path to the input image.

  • similarity_map (ndarray) – Phase grounding similarity map of the same size as the image.

  • bboxes (Optional[List[Tuple[float, float, float, float]]]) – Optional list of bounding boxes to plot on the image.

Return type

Figure