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(),
mzTolerance = Inf,
useFullMZ = TRUE,
method = "svm",
verbose = TRUE
)
ms.image-class object representing the binary mask image.
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 overrides useFullMZ
.
numeric (default = Inf). Tolerance in PPM to match the
mzQueryRef
. values in the m/z vector. It overrides useFullMZ
.
logical (default = `TRUE``). Whether all the peaks should be used to perform the supervised segmentation.
string (default = 'svm'). Supervised classifier used to segment the ROI.
boolean (default = `TRUE`). Additional output.
Paolo Inglese p.inglese14@imperial.ac.uk