Shows two segmentation masks (and optionally the source image) next to each other using faceted panels.
Usage
sg_plot_comparison(
mask_a,
mask_b,
image = NULL,
labels = c("Method A", "Method B")
)Examples
m1 <- new_sg_mask(matrix(c(0L, 1L, 1L, 0L), 2, 2))
m2 <- new_sg_mask(matrix(c(0L, 0L, 1L, 1L), 2, 2))
p <- sg_plot_comparison(m1, m2)
p