Learn R Programming

IFC (version 0.2.1)

redefine_masks: IFC_masks Redefinition

Description

Helper to modify features_def according to masks or images redefinition.

Usage

redefine_masks(
  masks,
  images,
  new_images_names = images$name,
  to_match_mask = NULL,
  to_replace_mask = NULL,
  ...
)

Value

a list whose members are: -masks, an `IFC_masks` object or data.frame containing masks definition and name. -images, a data.frame containing images definition.

Arguments

masks

an `IFC_masks` object or a data.frame containing masks definition and name. Default is missing.

images

a data.frame containing images definition. Default is missing.

new_images_names

a vector of image name to use for replacing 'images' names. Default is images$name

to_match_mask

a string with a mask name to use for matching 'masks' names. Default is NULL

to_replace_mask

a string of mask name to use for replacing 'masks' names. Default is NULL

...

Other arguments to be passed.