plot_masks: Generates raster images with segmentation masks.

Description Usage Arguments Value

View source: R/plot_functions.R

Description

Generates raster images with segmentation masks.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
plot_masks(
  images_paths,
  masks,
  labels,
  colormap,
  grayscale = FALSE,
  save_dir = NULL,
  plot_images = TRUE,
  background_label = "background"
)

Arguments

images_paths

Image filepaths.

masks

Predicted segmentation masks.

labels

Character vector containing class labels. For example voc_labels.

colormap

Class color map. For example voc_colormap.

grayscale

Should images be plotted in grayscale.

save_dir

Directory in which to save generated images.

plot_images

Should images be plotted.

background_label

Name of the background class label to filter out.

Value

Raster images with segmentation masks.


maju116/platypus documentation built on Oct. 18, 2020, 9:40 a.m.