create_segmentation_map_ggplot: Generates raster image with segmentation masks.

Description Usage Arguments Value

View source: R/plot_functions.R

Description

Generates raster image with segmentation masks.

Usage

1
2
3
4
5
6
7
8
9
create_segmentation_map_ggplot(
  image_path,
  masks,
  labels,
  colormap,
  target_size,
  grayscale,
  background_label
)

Arguments

image_path

Image filepath.

masks

Predicted segmentation masks.

labels

Character vector containing class labels. For example voc_labels.

colormap

Class color map. For example voc_colormap.

target_size

Image target size.

grayscale

Should images be plotted in grayscale.

background_label

Name of the background class label to filter out.

Value

Raster image with segmentation masks.


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