Skip to contents

Renders the comparison overlay between two deep-learning detection or segmentation outputs, color-coding instances by status ("common", "only_x", "only_y").

Usage

# S3 method for class 'image_compare_dl'
plot(
  x,
  img = NULL,
  mode = NULL,
  col = NULL,
  alpha = NULL,
  border = NULL,
  lwd = NULL,
  cex = NULL,
  bbox = NULL,
  mask = NULL,
  badge = NULL,
  badge_pad = NULL,
  show_text = NULL,
  show_conf = NULL,
  show_class = NULL,
  show_id = NULL,
  show_status = NULL,
  show_legend = NULL,
  legend_pos = NULL,
  ...
)

Arguments

x

An object of class image_compare_dl returned by image_compare_dl().

img

Optional Image object to use as background.

mode

Optional override for mode ("all", "intersection", "difference", "only_x", "only_y").

col, alpha, border, lwd, cex, bbox, mask, badge, badge_pad, show_text, show_conf, show_class, show_id, show_status, show_legend, legend_pos

Visual parameters overriding the original image_compare_dl() settings.

...

Additional graphical arguments passed to graphics::plot().

Value

Invisibly returns x.