Learn R Programming

IFC (version 0.2.1)

swap_channel: Channel Swap

Description

Swaps Channels within `IFC_data` object

Usage

swap_channel(obj, chan1, chan2, BF = TRUE, MODE = 1)

Value

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.

Arguments

obj

an `IFC_data` object extracted with features extracted.

chan1, chan2

an integer index of channel. 'chan1' and 'chan2' should be different.

BF

should 'from' channel be considered as brightfield. Default is TRUE.

MODE

collection mode (as retrieved by getInfo) determining the range. Default is 1.

Details

'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'.