Helper to split a features definitions within IFC_features_def.
split_feat(
features_def,
all_names = names(features_def),
alt_names = NULL,
m_names = sprintf("M%02i", 1:12),
i_names = sprintf("Ch%02i", 1:12),
comb_operators = c("+", "-", "*", "/", "(", ")", "ABS", "COS", "SIN", "SQR", "SQRT"),
extr_operators = c("true", "false", "True", "False"),
split = "|",
force = FALSE
)
an `IFC_features_def` object, or a list containing features definition
an `IFC_features_def` object or a list containing features definition. Default is missing.
the names of all allowed names.
vector of same length as 'all_names'
to use for substitution. It can be used to speed up the process.
names of masks.
names of images.
operators used for combined features. Default is c("+", "-", "*", "/", "(", ")", "ABS", "COS", "SIN", "SQR", "SQRT")
.
operators used for non combined features. Default is c("true", "false", "True", "False")
.
Those will be added to 'm_names'
, 'i_names'
and all possible features names (as given by the getFromNamespace("featureIFC", "IFC")()
).
string used for splitting. Default is "|"
.
whether to force splitting even if 'split'
is detected.