redefine_masks: IFC_masks Redefinition

View source: R/redefine_utils.R

redefine_masksR Documentation

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,
  ...
)

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.

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.


IFC documentation built on Sept. 14, 2023, 1:08 a.m.