Return a binary mask generated applying a supervised classifier on peaks intensities using manually selected regions corresponding to off-sample and sample-related areas.
# S4 method for msi.dataset
binSupervised(object, refImage,
mzQuery = numeric(), useFullMZ = T, mzTolerance = numeric(),
method = "svm")
msi.dataset-class object
ms.image-class object. Image used as reference to manually select the ROI pixels.
numeric. Values of m/z used to calculate the reference image.
2 values are interpreted as interval, multiple or single values are searched
in the m/z vector. It should be left unset when using useFullMZRef = TRUE
.
logical (default = TRUE). Whether all the peaks should be used to calculate the reference image.
numeric. Tolerance in PPM to match the mzQueryRef
values in the m/z vector. Only valid when useFullMZ = FALSE
.
string (default = 'svm'). Supervised classifier used to segment the ROI.
ms.image-class object representing the binary mask image.