Add a region a mask. The region is specfied as TRUE values in a matrix of the same dimensions as the existing mask. In case no mask exists, one is created.
x3p_add_mask_layer(x3p, mask, color = "red", annotation = "")
x3p object with changed mask
x3p object
logical matrix of the same dimension as the surface matrix. Values of TRUE are assumed to be added in the mask, values of FALSE are being ignored.
name or hex value of color
character value describing the region