Learn R Programming

SPUTNIK (version 1.1)

binOtsu,ms.image-method: Binarize MS image using Otsu's thresholding.

Description

Binarize MS image using Otsu's thresholding.

Usage

# S4 method for ms.image
binOtsu(object)

Arguments

object

ms.image-class object. See msImage.

Value

ms.image-class object with binary intensities.

Examples

Run this code
# NOT RUN {
## Load package
library("SPUTNIK")

## Create ms.image-class object
msIm <- msImage(values = matrix(rnorm(200), 40, 50), name = "test", scale = TRUE)

## Generate binary image
binIm <- binOtsu(msIm)
# }

Run the code above in your browser using DataLab