Swaps Channels within `IFC_data` object
swap_channel(obj, chan1, chan2, BF = TRUE, MODE = 1)
a list, intended to be passed to 'new_feat_def' argument of getFromNamespace("redefine_obj", "IFC") whose members are:
-features_def, an 'IFC_features_def' object, or a list containing features definition
-masks, an 'IFC_masks' object or a data.frame containing masks definition and name.
-images, a data.frame containing images definition.
an `IFC_data` object extracted with features extracted.
an integer index of channel. 'chan1' and 'chan2' should be different.
should 'from' channel be considered as brightfield. Default is TRUE.
collection mode (as retrieved by getInfo) determining the range. Default is 1.
'BF' and 'MODE' will be used only if 'chan1' or 'chan2' is not found in 'obj'.
/!\ NOTE: In case of conflict between resulting names, 'chan2' will be preferred, maximizing number of features with 'chan2'.