[1] 8 8 3
Lay a mask over the image it belongs to
Description
The picture that answers "where is it looking". Background - class 1 - is left alone, so only the classes that were found are tinted.
Usage
overlay_mask(image, mask, colormap, alpha = drawing_style()\$overlay_alpha)
Arguments
image
|
A height x width x channels array. Values in 0-1 or 0-255; greyscale is repeated across three channels.
|
mask
|
Class indices, counted from 1, matching the image’s height and width. |
colormap
|
A list of RGB triples, one per class. |
alpha
|
How strongly to tint, 0 to 1. |
Value
A height x width x 3 array of 0-255 integers.