View source: R/binary_refimg.R
refImageBinaryKmeans | R Documentation |
Calculate the binary reference image using k-means clustering. K-Means is run on the first 'npcs' principal components to speed up the calculations.
refImageBinaryKmeans(
dataset,
npcs = 10,
alignTo = "detected",
invertAligned = FALSE
)
dataset |
msi.dataset-class object. See msiDataset. |
npcs |
int (default = 10). Number of principal components to calculate. |
alignTo |
string (default = "detected"). Sample reference image to align the estimate binary image. It is expected to correlate with the sample location. |
invertAligned |
boolean (default = FALSE). If TRUE, the binary image is
inverted after being aligned to the sample reference ( |
ms.image-class object with binary intensities.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.